Sign in
third-party-mirror
/
mingw-w64
/
0290618ceaeb1087e7f396809c929b79cbc255d0
/
.
/
mingw-w64-crt
/
intrincs
/
readfsbyte.c
blob: 23383710d89560a700ce0519f891a64f22ff6c69 [
file
] [
log
] [
blame
]
#include
<intrin.h>
/* for x86 only */
unsigned
char
__readfsbyte
(
unsigned
__LONG32
Offset
)
{
unsigned
char
ret
;
__asm__
volatile
(
"movb %%fs:%1,%0"
:
"=r"
(
ret
)
,
"=m"
((*(
volatile
__LONG32
*)
Offset
)));
return
ret
;
}