Sign in
third-party-mirror
/
mingw-w64
/
dbc05d62a2762e98080b2942038adca7a799bb98
/
.
/
mingw-w64-crt
/
intrincs
/
bittestc.c
blob: 0add00f0109bb5dd7e9cee2268e90a9c4661228a [
file
] [
log
] [
blame
]
#include
<intrin.h>
unsigned
char
_bittestandcomplement
(
long
*
Base
,
long
Offset
)
{
int
old
=
0
;
__asm__ __volatile__
(
"btcl %2,%1\n\tsbbl %0,%0 "
:
"=r"
(
old
),
"=m"
((*(
volatile
long
*)
Base
))
:
"Ir"
(
Offset
));
return
(
old
!=
0
);
}