Sign in
third-party-mirror
/
mingw-w64
/
dbc05d62a2762e98080b2942038adca7a799bb98
/
.
/
mingw-w64-crt
/
intrincs
/
readfsdword.c
blob: b1a0c7c4e6eb98d9279107bcb8ae7d7c062aacfb [
file
] [
log
] [
blame
]
#include
<intrin.h>
/* for x86 only */
unsigned
long
__readfsdword
(
unsigned
long
Offset
)
{
unsigned
long
ret
;
__asm__
volatile
(
"movl %%fs:%1,%0"
:
"=r"
(
ret
)
,
"=m"
((*(
volatile
long
*)
Offset
)));
return
ret
;
}