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