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