31 |
|
|
32 |
#define EMMS() __asm {emms} |
#define EMMS() __asm {emms} |
33 |
|
|
34 |
|
#define CACHE_LINE 16 |
35 |
|
#define CACHE_ALIGN __declspec(align(CACHE_LINE)) |
36 |
|
|
37 |
// needed for bitstream.h |
// needed for bitstream.h |
38 |
#define BSWAP(a) __asm mov eax,a __asm bswap eax __asm mov a, eax |
#define BSWAP(a) __asm mov eax,a __asm bswap eax __asm mov a, eax |
39 |
|
|
73 |
#define DEBUG8(X,A,B,C,D,E,F,G,H) |
#define DEBUG8(X,A,B,C,D,E,F,G,H) |
74 |
#endif |
#endif |
75 |
|
|
76 |
|
#define CACHE_LINE 16 |
77 |
|
#define CACHE_ALIGN __attribute__ ((__aligned__(CACHE_LINE))) |
78 |
|
|
79 |
|
|
80 |
#if defined(LINUX) |
#if defined(LINUX) |
81 |
|
|
82 |
#include <stdint.h> |
#include <stdint.h> |
94 |
|
|
95 |
#endif |
#endif |
96 |
|
|
|
#define EMMS() __asm__("emms\n\t") |
|
97 |
|
|
98 |
// needed for bitstream.h |
// needed for bitstream.h |
99 |
|
#ifdef ARCH_PPC |
100 |
|
#define BSWAP(a) __asm__ ( "lwbrx %0,0,%1; eieio" : "=r" (a) : \ |
101 |
|
"r" (&(a)), "m" (a)); |
102 |
|
#define EMMS() |
103 |
|
#else |
104 |
#define BSWAP(a) __asm__ ( "bswapl %0\n" : "=r" (a) : "0" (a) ) |
#define BSWAP(a) __asm__ ( "bswapl %0\n" : "=r" (a) : "0" (a) ) |
105 |
|
#define EMMS() __asm__("emms\n\t") |
106 |
|
#endif |
107 |
|
|
108 |
// needed for timer.c |
// needed for timer.c |
109 |
static __inline int64_t read_counter() { |
static __inline int64_t read_counter() { |
139 |
return 0; |
return 0; |
140 |
} |
} |
141 |
|
|
142 |
|
#define CACHE_LINE 16 |
143 |
|
#define CACHE_ALIGN |
144 |
|
|
145 |
#endif |
#endif |
146 |
|
|
147 |
#endif // _PORTAB_H_ |
#endif // _PORTAB_H_ |