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) |
295 |
*---------------------------------------------------------------------------*/ |
*---------------------------------------------------------------------------*/ |
296 |
# elif defined(ARCH_SPARC) |
# elif defined(ARCH_SPARC) |
297 |
# define BSWAP(a) \ |
# define BSWAP(a) \ |
298 |
((a) = (((a) & 0xff) << 24) | (((a) & 0xff00) << 8) | |
((a) = (((a) & 0xff) << 24) | (((a) & 0xff00) << 8) | \ |
299 |
(((a) >> 8) & 0xff00) | (((a) >> 24) & 0xff)) |
(((a) >> 8) & 0xff00) | (((a) >> 24) & 0xff)) |
300 |
# define EMMS() |
# define EMMS() |
301 |
|
|
309 |
*---------------------------------------------------------------------------*/ |
*---------------------------------------------------------------------------*/ |
310 |
# elif defined(ARCH_MIPS) |
# elif defined(ARCH_MIPS) |
311 |
# define BSWAP(a) \ |
# define BSWAP(a) \ |
312 |
((a) = (((a) & 0xff) << 24) | (((a) & 0xff00) << 8) | |
((a) = (((a) & 0xff) << 24) | (((a) & 0xff00) << 8) | \ |
313 |
(((a) >> 8) & 0xff00) | (((a) >> 24) & 0xff)) |
(((a) >> 8) & 0xff00) | (((a) >> 24) & 0xff)) |
314 |
# define EMMS() |
# define EMMS() |
315 |
|
|