Fixed InterlockedExchangeAdd

svn path=/trunk/; revision=24487
This commit is contained in:
Thomas Bluemel 2006-10-11 17:41:42 +00:00
parent 11962157c1
commit 5cb6da33e5

View file

@ -265,7 +265,7 @@ static __inline__ __attribute__((always_inline)) void * _InterlockedExchangePoin
static __inline__ __attribute__((always_inline)) long _InterlockedExchangeAdd(volatile long * const Addend, const long Value)
{
long retval = Value;
__asm__("lock; xaddl %[retval], %[Addend]" : "=r" (retval) : "rm" (Addend));
__asm__("lock; xaddl %[retval], %[Addend]" : [retval] "=r" (retval) : [Addend] "rm" (Addend));
return retval;
}