[cvs] / xvidcore / src / portab.h Repository:
ViewVC logotype

Diff of /xvidcore/src/portab.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3, Sat Mar 16 22:28:37 2002 UTC revision 1.5, Thu Mar 21 13:44:29 2002 UTC
# Line 31  Line 31 
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    
# Line 70  Line 73 
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
78    
79  #if defined(LINUX)  #if defined(LINUX)
80    
81  #include <stdint.h>  #include <stdint.h>
# Line 87  Line 93 
93    
94  #endif  #endif
95    
 #define EMMS() __asm__("emms\n\t")  
96    
97  // needed for bitstream.h  // needed for bitstream.h
98    #ifdef ARCH_PPC
99            #define BSWAP(a) __asm__ ( "lwbrx %0,0,%1; eieio" : "=r" (a) : \
100                    "r" (&(a)), "m" (a));
101            #define EMMS()
102    #else
103  #define BSWAP(a) __asm__ ( "bswapl %0\n" : "=r" (a) : "0" (a) )  #define BSWAP(a) __asm__ ( "bswapl %0\n" : "=r" (a) : "0" (a) )
104            #define EMMS() __asm__("emms\n\t")
105    #endif
106    
107  // needed for timer.c  // needed for timer.c
108  static __inline int64_t read_counter() {  static __inline int64_t read_counter() {
# Line 126  Line 138 
138          return 0;          return 0;
139  }  }
140    
141    #define CACHE_LINE  16
142    #define CACHE_ALIGN
143    
144  #endif  #endif
145    
146  #endif // _PORTAB_H_  #endif // _PORTAB_H_

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.5

No admin address has been configured
ViewVC Help
Powered by ViewVC 1.0.4