mirror of
https://github.com/reactos/reactos.git
synced 2025-03-10 18:24:02 +00:00
Fixed InterlockedExchangeAdd
svn path=/trunk/; revision=24487
This commit is contained in:
parent
11962157c1
commit
5cb6da33e5
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue