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