[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.28, Sun Sep 22 16:59:57 2002 UTC revision 1.30, Sun Sep 22 17:59:13 2002 UTC
# Line 227  Line 227 
227  #    endif /* _DEBUG */  #    endif /* _DEBUG */
228    
229    
230  #    ifdef _DEBUG  
231  #        define DECLARE_ALIGNED_MATRIX(name,sizex,sizey,type,alignment) \  #        define DECLARE_ALIGNED_MATRIX(name,sizex,sizey,type,alignment) \
232                  type name##_storage[(sizex)*(sizey)+(alignment)-1]; \                  type name##_storage[(sizex)*(sizey)+(alignment)-1]; \
233                  type * name = (type *) (((ptr_t) name##_storage+(alignment - 1)) & ~((ptr_t)(alignment)-1))                  type * name = (type *) (((ptr_t) name##_storage+(alignment - 1)) & ~((ptr_t)(alignment)-1))
 #    else  
 #        define DECLARE_ALIGNED_MATRIX(name,sizex,sizey,type,alignment) \  
                 __attribute__ ((__aligned__(CACHE_LINE))) type name[(sizex)*(sizey)]  
 #    endif  
234    
235  /*----------------------------------------------------------------------------  /*----------------------------------------------------------------------------
236   | gcc x86 specific macros/functions   | gcc x86 specific macros/functions
# Line 304  Line 300 
300   *---------------------------------------------------------------------------*/   *---------------------------------------------------------------------------*/
301  #    elif defined(ARCH_SPARC)  #    elif defined(ARCH_SPARC)
302  #        define BSWAP(a) \  #        define BSWAP(a) \
303                  ((a) = (((a) & 0xff) << 24)  | (((a) & 0xff00) << 8) |                  ((a) = (((a) & 0xff) << 24)  | (((a) & 0xff00) << 8) | \
304                         (((a) >> 8) & 0xff00) | (((a) >> 24) & 0xff))                         (((a) >> 8) & 0xff00) | (((a) >> 24) & 0xff))
305  #        define EMMS()  #        define EMMS()
306    
# Line 318  Line 314 
314   *---------------------------------------------------------------------------*/   *---------------------------------------------------------------------------*/
315  #    elif defined(ARCH_MIPS)  #    elif defined(ARCH_MIPS)
316  #        define BSWAP(a) \  #        define BSWAP(a) \
317                  ((a) = (((a) & 0xff) << 24)  | (((a) & 0xff00) << 8) |                  ((a) = (((a) & 0xff) << 24)  | (((a) & 0xff00) << 8) | \
318                         (((a) >> 8) & 0xff00) | (((a) >> 24) & 0xff))                         (((a) >> 8) & 0xff00) | (((a) >> 24) & 0xff))
319  #        define EMMS()  #        define EMMS()
320    

Legend:
Removed from v.1.28  
changed lines
  Added in v.1.30

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