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

Diff of /trunk/xvidcore/src/portab.h

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

revision 513, Sun Sep 22 16:59:57 2002 UTC revision 517, Sun Sep 22 17:59:13 2002 UTC
# Line 28  Line 28 
28   *  along with this program ; if not, write to the Free Software   *  along with this program ; if not, write to the Free Software
29   *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA   *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
30   *   *
31   * $Id: portab.h,v 1.28 2002-09-22 16:59:57 edgomez Exp $   * $Id: portab.h,v 1.30 2002-09-22 17:59:13 edgomez Exp $
32   *   *
33   ****************************************************************************/   ****************************************************************************/
34    
# 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.513  
changed lines
  Added in v.517

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