Logo Search packages:      
Sourcecode: mingw-w64 version File versions  Download package

readgsword.c
#include <intrin.h>

/* for __x86_64 only */
unsigned short __readgsword(unsigned long Offset)
{
   unsigned short ret;
   __asm__ volatile ("movw    %%gs:%1,%0"
     : "=r" (ret) ,"=m" ((*(volatile long *) (unsigned __int64) Offset)));
   return ret;
}


Generated by  Doxygen 1.6.0   Back to index