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