blob: bf13a9feaf8717762ca8f31baf0f5249cd092c82 [file] [log] [blame]
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#define __CRT__NO_INLINE
#include <windows.h>
LONG InterlockedXor(LONG volatile *Destination,LONG Value)
{
__asm__ __volatile__("lock ; xorl %0,%1"
: : "r"(Value),"m"(*Destination) : "memory");
return *Destination;
}