[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.2, Sat Mar 16 14:15:10 2002 UTC revision 1.4, Wed Mar 20 14:02:48 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 52  Line 55 
55    
56  #elif defined(LINUX) || defined(DJGPP)  #elif defined(LINUX) || defined(DJGPP)
57    
58    
59    #ifdef _DEBUG
60    
61  #include <stdio.h>  #include <stdio.h>
62  #define DEBUG_WHERE             stdout  #define DEBUG_WHERE             stdout
63  #define DEBUG(S)        fprintf(DEBUG_WHERE, "%s\n", (S));  #define DEBUG(S)        fprintf(DEBUG_WHERE, "%s\n", (S));
# Line 59  Line 65 
65  #define DEBUG2(S,A,B)   fprintf(DEBUG_WHERE, "%s%i=%i\n", (S), (A), (B))  #define DEBUG2(S,A,B)   fprintf(DEBUG_WHERE, "%s%i=%i\n", (S), (A), (B))
66  #define DEBUG3(S,A,B,C) fprintf(DEBUG_WHERE, "%s %i %x %x\n", (S), (A), (B), (C))  #define DEBUG3(S,A,B,C) fprintf(DEBUG_WHERE, "%s %i %x %x\n", (S), (A), (B), (C))
67  #define DEBUG8(S,A,B,C,D,E,F,G,H)  #define DEBUG8(S,A,B,C,D,E,F,G,H)
68    #else
69    #define DEBUG(S)
70    #define DEBUG1(S,I)
71    #define DEBUG2(X,A,B)
72    #define DEBUG3(X,A,B,C)
73    #define DEBUG8(X,A,B,C,D,E,F,G,H)
74    #endif
75    
76    #define CACHE_LINE  16
77    #define CACHE_ALIGN
78    
79  #if defined(LINUX)  #if defined(LINUX)
80    
# Line 116  Line 132 
132          return 0;          return 0;
133  }  }
134    
135    #define CACHE_LINE  16
136    #define CACHE_ALIGN
137    
138  #endif  #endif
139    
140  #endif // _PORTAB_H_  #endif // _PORTAB_H_

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

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