Sign in
mingw
/
mingw-w64
/
b461c720a1e47a03dd69a80e08008bf8bccbfe4b
/
.
/
mingw-w64-crt
/
intrincs
/
writefsword.c
blob: 9fb74d9c8cf217cb81250629da71d4b5b482e6e6 [
file
] [
log
] [
blame
]
#include
<intrin.h>
/* for x86 only */
void
__writefsword
(
unsigned
__LONG32
Offset
,
unsigned
short
Data
)
{
__asm__
volatile
(
"movw %0,%%fs:%1"
:
"=r"
(
Data
)
,
"=m"
((*(
volatile
__LONG32
*)
Offset
)));
}