NO

Author Topic: error in __stosq intrinsic  (Read 2673 times)

oforshell

  • Guest
error in __stosq intrinsic
« on: February 14, 2011, 10:51:06 PM »
I use __stosq in a wrapper:

__inline void set8  (unsigned long long val,void *dstp,int count) {__stosq(dstp,val,count);}

I call it like this:

set8 (0x0203040506070809,buffer,sizeof(buffer)/8);

and get:

C:\Software\Projects\x86-64\sredump\sredump.c(24): warning #3110: [asm] Integer value too large for 32 bits.

This is because the intrinsic has the second parameter declared as eax (or at least tries to fit 0x0203040506070809 into eax) istdo rax.

Offline Pelle

  • Administrator
  • Member
  • *****
  • Posts: 2266
    • http://www.smorgasbordet.com
Re: error in __stosq intrinsic
« Reply #1 on: April 17, 2011, 03:53:29 PM »
Confirmed. Should be fixed in 6.50, RC4.
/Pelle