blob: 572012773a40d2e4ca90200659bd7bbd3e56cca3 [file] [log] [blame]
#include <intrin.h>
/* for x86 only */
unsigned __LONG32 __readfsdword(unsigned __LONG32 Offset)
{
unsigned __LONG32 ret;
__asm__ volatile ("movl %%fs:%1,%0"
: "=r" (ret) ,"=m" ((*(volatile __LONG32 *) Offset)));
return ret;
}