blob: ef8a0a5018672d4d3808efc12a69b519bc055b8e [file] [log] [blame]
#include <intrin.h>
long _InterlockedXor(long volatile *Destination, long Value)
{
__asm__ __volatile__("lock ; xorl %0,%1"
: : "r"(Value),"m"(*Destination) : "memory");
return *Destination;
}
long InterlockedXor(long volatile *, long) __attribute__((alias("_InterlockedXor")));