[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.42, Sun Feb 16 05:11:39 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;
# Line 664  Line 664 
664  #define TEST_FDCT  (TEST_FORWARD)  #define TEST_FDCT  (TEST_FORWARD)
665  #define TEST_IDCT  (0)  #define TEST_IDCT  (0)
666    
667  int test_transform(void * funcA, void * funcB, const char * nameB,  static int test_transform(void * funcA, void * funcB, const char * nameB,
668                                     int test, int flags)                                     int test, int flags)
669  {  {
670          int i;          int i;
# Line 744  Line 744 
744  #define TEST_DEQUANT_INTRA      (TEST_INTRA)  #define TEST_DEQUANT_INTRA      (TEST_INTRA)
745  #define TEST_DEQUANT_INTER      (0)  #define TEST_DEQUANT_INTER      (0)
746    
747  int test_quant(void * funcA, void * funcB, const char * nameB,  static int test_quant(void * funcA, void * funcB, const char * nameB,
748                             int test, int flags)                             int test, int flags)
749  {  {
750          int q,i;          int q,i;
# Line 831  Line 831 
831    
832          printf("xvid_init_test\n");          printf("xvid_init_test\n");
833    
834  #if defined(ARCH_X86)  #if defined(ARCH_IS_IA32)
835          cpu_flags = detect_cpu_flags();          cpu_flags = detect_cpu_flags();
836          idct_int32_init();          idct_int32_init();
837          emms_mmx();          emms_mmx();

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

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