126 |
|
|
127 |
/* detect cpu flags */ |
/* detect cpu flags */ |
128 |
static unsigned int |
static unsigned int |
129 |
detect_cpu_flags() |
detect_cpu_flags(void) |
130 |
{ |
{ |
131 |
/* enable native assembly optimizations by default */ |
/* enable native assembly optimizations by default */ |
132 |
unsigned int cpu_flags = XVID_CPU_ASM; |
unsigned int cpu_flags = XVID_CPU_ASM; |
183 |
idct = idct_int32; |
idct = idct_int32; |
184 |
|
|
185 |
/* Only needed on PPC Altivec archs */ |
/* Only needed on PPC Altivec archs */ |
186 |
sadInit = 0; |
sadInit = NULL; |
187 |
|
|
188 |
/* Restore FPU context : emms_c is a nop functions */ |
/* Restore FPU context : emms_c is a nop functions */ |
189 |
emms = emms_c; |
emms = emms_c; |
636 |
* features there really are. */ |
* features there really are. */ |
637 |
if (cpu_flags & XVID_CPU_ASM) { |
if (cpu_flags & XVID_CPU_ASM) { |
638 |
/* SIMD state flusher */ |
/* SIMD state flusher */ |
639 |
emms = emms_3dn; |
emms = emms_mmx; |
640 |
|
|
641 |
/* DCT operators */ |
/* DCT operators */ |
642 |
fdct = fdct_skal_x86_64; |
fdct = fdct_skal_x86_64; |
712 |
return XVID_ERR_VERSION; |
return XVID_ERR_VERSION; |
713 |
|
|
714 |
info->actual_version = XVID_VERSION; |
info->actual_version = XVID_VERSION; |
715 |
info->build = "xvid-1.1.0-beta2"; |
info->build = "xvid-1.1.1; |
716 |
info->cpu_flags = detect_cpu_flags(); |
info->cpu_flags = detect_cpu_flags(); |
717 |
|
|
718 |
#if defined(_SMP) && defined(WIN32) |
#if defined(_SMP) && defined(WIN32) |