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

Diff of /trunk/xvidcore/src/xvid.c

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

revision 648, Sat Nov 16 23:38:16 2002 UTC revision 824, Sun Feb 9 19:32:52 2003 UTC
# Line 50  Line 50 
50   *  exception also makes it possible to release a modified version which   *  exception also makes it possible to release a modified version which
51   *  carries forward this exception.   *  carries forward this exception.
52   *   *
53   * $Id: xvid.c,v 1.39 2002-11-16 23:38:16 edgomez Exp $   * $Id: xvid.c,v 1.40 2003-02-09 19:32:52 edgomez Exp $
54   *   *
55   ****************************************************************************/   ****************************************************************************/
56    
# Line 71  Line 71 
71  #include "utils/timer.h"  #include "utils/timer.h"
72  #include "bitstream/mbcoding.h"  #include "bitstream/mbcoding.h"
73    
74  #if defined(ARCH_X86) && defined(EXPERIMENTAL_SSE2_CODE)  #if defined(ARCH_IS_IA32) && defined(EXPERIMENTAL_SSE2_CODE)
75    
76  #ifdef WIN32  #ifdef _MSC_VER
77  #include <windows.h>  #include <windows.h>
78  #else  #else
79  #include <signal.h>  #include <signal.h>
# Line 81  Line 81 
81  #endif  #endif
82    
83    
84  #ifndef WIN32  #ifndef _MSC_VER
85    
86  static jmp_buf mark;  static jmp_buf mark;
87    
# Line 104  Line 104 
104  int  int
105  sigill_check(void (*func)())  sigill_check(void (*func)())
106  {  {
107  #ifdef WIN32  #ifdef _MSC_VER
108          _try {          _try {
109                  func();                  func();
110          }          }
# Line 178  Line 178 
178    
179                  cpu_flags = check_cpu_features();                  cpu_flags = check_cpu_features();
180    
181  #if defined(ARCH_X86) && defined(EXPERIMENTAL_SSE2_CODE)  #if defined(ARCH_IS_IA32) && defined(EXPERIMENTAL_SSE2_CODE)
182                  if ((cpu_flags & XVID_CPU_SSE) && sigill_check(sse_os_trigger))                  if ((cpu_flags & XVID_CPU_SSE) && sigill_check(sse_os_trigger))
183                          cpu_flags &= ~XVID_CPU_SSE;                          cpu_flags &= ~XVID_CPU_SSE;
184    
# Line 265  Line 265 
265    
266          Halfpel8_Refine = Halfpel8_Refine_c;          Halfpel8_Refine = Halfpel8_Refine_c;
267    
268  #ifdef ARCH_X86  #ifdef ARCH_IS_IA32
269          if ((cpu_flags & XVID_CPU_MMX) > 0) {          if ((cpu_flags & XVID_CPU_MMX) > 0) {
270    
271                  /* Forward and Inverse Discrete Cosine Transformation functions */                  /* Forward and Inverse Discrete Cosine Transformation functions */
# Line 392  Line 392 
392    
393  #endif  #endif
394    
395  #ifdef ARCH_IA64  #ifdef ARCH_IS_IA64
396          if ((cpu_flags & XVID_CPU_IA64) > 0) { //use assembler routines?          if ((cpu_flags & XVID_CPU_IA64) > 0) { //use assembler routines?
397            idct_ia64_init();            idct_ia64_init();
398            fdct = fdct_ia64;            fdct = fdct_ia64;
# Line 419  Line 419 
419          }          }
420  #endif  #endif
421    
422  #ifdef ARCH_PPC  #ifdef ARCH_IS_PPC
423  #ifdef ARCH_PPC_ALTIVEC  #ifdef ARCH_IS_PPC_ALTIVEC
424          calc_cbp = calc_cbp_altivec;          calc_cbp = calc_cbp_altivec;
425          fdct = fdct_altivec;          fdct = fdct_altivec;
426          idct = idct_altivec;          idct = idct_altivec;

Legend:
Removed from v.648  
changed lines
  Added in v.824

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