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