[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.4, Wed Mar 20 14:02:48 2002 UTC revision 1.7, Mon Mar 25 20:01:54 2002 UTC
# Line 32  Line 32 
32  #define EMMS() __asm {emms}  #define EMMS() __asm {emms}
33    
34  #define CACHE_LINE  16  #define CACHE_LINE  16
35    #if _MSC_VER <= 1200
36    #define CACHE_ALIGN
37    #else
38  #define CACHE_ALIGN __declspec(align(CACHE_LINE))  #define CACHE_ALIGN __declspec(align(CACHE_LINE))
39    #endif
40    
41  // needed for bitstream.h  // needed for bitstream.h
42  #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
# Line 74  Line 78 
78  #endif  #endif
79    
80  #define CACHE_LINE  16  #define CACHE_LINE  16
81  #define CACHE_ALIGN  #define CACHE_ALIGN __attribute__ ((__aligned__(CACHE_LINE)))
82    
83    
84  #if defined(LINUX)  #if defined(LINUX)
85    
# Line 93  Line 98 
98    
99  #endif  #endif
100    
 #define EMMS() __asm__("emms\n\t")  
101    
102  // needed for bitstream.h  // needed for bitstream.h
103    #ifdef ARCH_PPC
104            #define BSWAP(a) __asm__ ( "lwbrx %0,0,%1; eieio" : "=r" (a) : \
105                    "r" (&(a)), "m" (a));
106            #define EMMS()
107    #else
108  #define BSWAP(a) __asm__ ( "bswapl %0\n" : "=r" (a) : "0" (a) )  #define BSWAP(a) __asm__ ( "bswapl %0\n" : "=r" (a) : "0" (a) )
109            #define EMMS() __asm__("emms\n\t")
110    #endif
111    
112  // needed for timer.c  // needed for timer.c
113  static __inline int64_t read_counter() {  static __inline int64_t read_counter() {

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.7

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