Sign in
third-party-mirror
/
mingw-w64
/
4af5f10d9841f1c1bc781335eac4269a89788a09
/
.
/
mingw-w64-crt
/
intrincs
/
bittests64.c
blob: e4d8681b663d7a10a5f1e99cb7288cb5eef18511 [
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
)
:
"memory"
);
return
(
old
!=
0
);
}