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