[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.30, Sun Sep 22 17:59:13 2002 UTC revision 1.33, Sat Oct 19 11:41:11 2002 UTC
# Line 3  Line 3 
3   *  XVID MPEG-4 VIDEO CODEC   *  XVID MPEG-4 VIDEO CODEC
4   *  - Portable macros, types and inlined assembly -   *  - Portable macros, types and inlined assembly -
5   *   *
6   *  Copyright(C) 2002 Michael Militzer   *  Copyright(C) 2002 Michael Militzer <isibaar@xvid.org>
7   *   *
8   *  This program is an implementation of a part of one or more MPEG-4   *  This program is an implementation of a part of one or more MPEG-4
9   *  Video tools as specified in ISO/IEC 14496-2 standard.  Those intending   *  Video tools as specified in ISO/IEC 14496-2 standard.  Those intending
# Line 109  Line 109 
109   *  Some things that are only architecture dependant   *  Some things that are only architecture dependant
110   ****************************************************************************/   ****************************************************************************/
111    
112  #if defined(ARCH_X86) || defined(ARCH_PPC) || defined(ARCH_MIPS)  #if defined(ARCH_X86) || defined(ARCH_PPC) || defined(ARCH_MIPS)  || defined(ARCH_SPARC)
113  #    define CACHE_LINE  16  #    define CACHE_LINE  16
114  #    define ptr_t uint32_t  #    define ptr_t uint32_t
115  #elif defined(ARCH_IA64) || defined(ARCH_SPARC)  #elif defined(ARCH_IA64)
116  #    define CACHE_LINE  32  #    define CACHE_LINE  32
117  #    define ptr_t uint64_t  #    define ptr_t uint64_t
118  #else  #else
# Line 166  Line 166 
166   | msvc x86 specific macros/functions   | msvc x86 specific macros/functions
167   *---------------------------------------------------------------------------*/   *---------------------------------------------------------------------------*/
168  #    if defined(ARCH_X86)  #    if defined(ARCH_X86)
169  #        define BSWAP(a)  #        define BSWAP(a) __asm mov eax,a __asm bswap eax __asm mov a, eax
              __asm { \  
                  mov eax,a \  
                  bswap eax \  
                  mov a, eax \  
              }  
170  #        define EMMS() __asm {emms}  #        define EMMS() __asm {emms}
171    
172               static __inline int64_t read_counter(void)               static __inline int64_t read_counter(void)

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

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