[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.5, Thu Mar 21 13:44:29 2002 UTC revision 1.8, Thu Mar 28 12:24:41 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
 #define CACHE_ALIGN  
81    
82  #if defined(LINUX)  #if defined(LINUX)
83    
84  #include <stdint.h>  #include <stdint.h>
85    
86    #define DECLARE_ALIGNED_MATRIX(name,sizex,sizey,type,alignment) \
87            type name##_storage[(sizex)*(sizey)+(alignment)-1]; \
88            typedef type  name##_sub[sizey]; \
89            name##_sub * name = (void *) (((int32_t) name##_storage+(alignment)) & ~((int32_t)(alignment)-1))
90    
91  #else  #else
92    
93    #define CACHE_ALIGN __attribute__ ((__aligned__(CACHE_LINE)))
94  #define int8_t char  #define int8_t char
95  #define uint8_t unsigned char  #define uint8_t unsigned char
96  #define int16_t short  #define int16_t short

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

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