166 |
| msvc x86 specific macros/functions |
| msvc x86 specific macros/functions |
167 |
*---------------------------------------------------------------------------*/ |
*---------------------------------------------------------------------------*/ |
168 |
# if defined(ARCH_X86) |
# if defined(ARCH_X86) |
169 |
# define BSWAP(a) |
# define BSWAP(a) __asm mov eax,a __asm bswap eax __asm mov a, eax |
|
__asm { \ |
|
|
mov eax,a \ |
|
|
bswap eax \ |
|
|
mov a, eax \ |
|
|
} |
|
170 |
# define EMMS() __asm {emms} |
# define EMMS() __asm {emms} |
171 |
|
|
172 |
static __inline int64_t read_counter(void) |
static __inline int64_t read_counter(void) |