[cvs] / xvidcore / src / xvid.c Repository:
ViewVC logotype

Diff of /xvidcore/src/xvid.c

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

revision 1.33.2.23, Wed Feb 12 11:46:18 2003 UTC revision 1.41, Sat Feb 15 15:22:17 2003 UTC
# Line 65  Line 65 
65  #include "utils/timer.h"  #include "utils/timer.h"
66  #include "bitstream/mbcoding.h"  #include "bitstream/mbcoding.h"
67    
68  #if defined(ARCH_X86)  #if defined(ARCH_IS_IA32)
69    
70  #if defined(_MSC_VER)  #if defined(_MSC_VER)
71  #       include <windows.h>  #       include <windows.h>
# Line 136  Line 136 
136          /* enable native assembly optimizations by default */          /* enable native assembly optimizations by default */
137          unsigned int cpu_flags = XVID_CPU_ASM;          unsigned int cpu_flags = XVID_CPU_ASM;
138    
139  #if defined(ARCH_X86)  #if defined(ARCH_IS_IA32)
140          cpu_flags |= check_cpu_features();          cpu_flags |= check_cpu_features();
141          if ((cpu_flags & XVID_CPU_SSE) && sigill_check(sse_os_trigger))          if ((cpu_flags & XVID_CPU_SSE) && sigill_check(sse_os_trigger))
142                  cpu_flags &= ~XVID_CPU_SSE;                  cpu_flags &= ~XVID_CPU_SSE;
# Line 145  Line 145 
145                  cpu_flags &= ~XVID_CPU_SSE2;                  cpu_flags &= ~XVID_CPU_SSE2;
146  #endif  #endif
147    
148  #if defined(ARCH_PPC)  #if defined(ARCH_IS_PPC)
149  #if defined(ARCH_PPC_ALTIVEC)  #if defined(ARCH_IS_PPC_ALTIVEC)
150          cpu_flags |= XVID_CPU_ALTIVEC;          cpu_flags |= XVID_CPU_ALTIVEC;
151  #endif  #endif
152  #endif  #endif
# Line 318  Line 318 
318    
319  //      Halfpel8_Refine = Halfpel8_Refine_c;  //      Halfpel8_Refine = Halfpel8_Refine_c;
320    
321  #if defined(ARCH_X86)  #if defined(ARCH_IS_IA32)
322    
323          if ((cpu_flags & XVID_CPU_ASM))          if ((cpu_flags & XVID_CPU_ASM))
324          {          {
# Line 525  Line 525 
525          }          }
526  #endif  #endif
527    
528  #if defined(ARCH_IA64)  #if defined(ARCH_IS_IA64)
529          if ((cpu_flags & XVID_CPU_ASM)) { //use assembler routines?          if ((cpu_flags & XVID_CPU_ASM)) { //use assembler routines?
530            idct_ia64_init();            idct_ia64_init();
531            fdct = fdct_ia64;            fdct = fdct_ia64;
# Line 552  Line 552 
552          }          }
553  #endif  #endif
554    
555  #if defined(ARCH_PPC)  #if defined(ARCH_IS_PPC)
556          if ((cpu_flags & XVID_CPU_ASM))          if ((cpu_flags & XVID_CPU_ASM))
557          {          {
558                  calc_cbp = calc_cbp_ppc;                  calc_cbp = calc_cbp_ppc;

Legend:
Removed from v.1.33.2.23  
changed lines
  Added in v.1.41

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