[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.52, Mon May 31 21:36:23 2004 UTC revision 1.56, Sun May 28 07:52:45 2006 UTC
# Line 75  Line 75 
75  #    define CACHE_LINE 64  #    define CACHE_LINE 64
76  #    define ptr_t uint32_t  #    define ptr_t uint32_t
77  #    define intptr_t int32_t  #    define intptr_t int32_t
78    #    define _INTPTR_T_DEFINED
79  #    if defined(_MSC_VER) && _MSC_VER >= 1300 && !defined(__INTEL_COMPILER)  #    if defined(_MSC_VER) && _MSC_VER >= 1300 && !defined(__INTEL_COMPILER)
80  #        include <stdarg.h>  #        include <stdarg.h>
81  #    else  #    else
# Line 84  Line 85 
85  #    define CACHE_LINE  64  #    define CACHE_LINE  64
86  #    define ptr_t uint64_t  #    define ptr_t uint64_t
87  #    define intptr_t int64_t  #    define intptr_t int64_t
88    #    define _INTPTR_T_DEFINED
89  #    if defined (_MSC_VER) && _MSC_VER >= 1300 && !defined(__INTEL_COMPILER)  #    if defined (_MSC_VER) && _MSC_VER >= 1300 && !defined(__INTEL_COMPILER)
90  #        include <stdarg.h>  #        include <stdarg.h>
91  #    else  #    else
# Line 151  Line 153 
153  /*----------------------------------------------------------------------------  /*----------------------------------------------------------------------------
154    | msvc x86 specific macros/functions    | msvc x86 specific macros/functions
155   *---------------------------------------------------------------------------*/   *---------------------------------------------------------------------------*/
156  #    if defined(ARCH_IS_IA32)  #    if defined(ARCH_IS_IA32) || defined(ARCH_IS_X86_64)
157  #        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
158    
159  static __inline int64_t read_counter(void)  static __inline int64_t read_counter(void)
# Line 219  Line 221 
221              if(xvid_debug & level) {              if(xvid_debug & level) {
222                     vfprintf(stderr, format, args);                     vfprintf(stderr, format, args);
223              }              }
224            va_end(args);
225          }          }
226    
227  #    else /* _DEBUG */  #    else /* _DEBUG */
# Line 233  Line 236 
236  /*----------------------------------------------------------------------------  /*----------------------------------------------------------------------------
237   | gcc IA32 specific macros/functions   | gcc IA32 specific macros/functions
238   *---------------------------------------------------------------------------*/   *---------------------------------------------------------------------------*/
239  #    if defined(ARCH_IS_IA32)  #    if defined(ARCH_IS_IA32) || defined(ARCH_IS_X86_64)
240  #        define BSWAP(a) __asm__ ( "bswapl %0\n" : "=r" (a) : "0" (a) );  #        define BSWAP(a) __asm__ ( "bswapl %0\n" : "=r" (a) : "0" (a) );
241    
242           static __inline int64_t read_counter(void)           static __inline int64_t read_counter(void)
# Line 290  Line 293 
293   *---------------------------------------------------------------------------*/   *---------------------------------------------------------------------------*/
294  #    elif defined(ARCH_IS_IA64)  #    elif defined(ARCH_IS_IA64)
295  #        define BSWAP(a)  __asm__ __volatile__ \  #        define BSWAP(a)  __asm__ __volatile__ \
296                  ("mux1 %1 = %0, @rev" ";;" \          ("mux1 %0 = %1, @rev" ";;" \
297                   "shr.u %1 = %1, 32" : "=r" (a) : "r" (a));           "shr.u %0 = %0, 32" : "=r" (a) : "r" (a));
298    
299           static __inline int64_t read_counter(void)           static __inline int64_t read_counter(void)
300           {           {

Legend:
Removed from v.1.52  
changed lines
  Added in v.1.56

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