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