blob: 384f4c64c6726afdd38e7687b1692146f4dc13bb [file] [log] [blame]
#include <intrin.h>
unsigned char _interlockedbittestandset64(__int64 *Base, __int64 Offset)
{
int old = 0;
__asm__ __volatile__("lock ; btsq %2,%1\n\tsbbl %0,%0 "
:"=r" (old),"=m" ((*(volatile long long *) Base))
:"Ir" (Offset));
return (old != 0);
}