mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-10 13:29:58 -05:00
tests: Factor out Orc test code into cpu-test
Reorganises all the svolume core test code in cpu-test since it's the same across MMX/SSE/etc.
This commit is contained in:
parent
c2f7987f09
commit
b6f2ccf194
4 changed files with 93 additions and 219 deletions
|
|
@ -25,14 +25,18 @@
|
|||
|
||||
#include "cpu-orc.h"
|
||||
|
||||
void pa_cpu_init_orc(pa_cpu_info cpu_info)
|
||||
pa_bool_t pa_cpu_init_orc(pa_cpu_info cpu_info)
|
||||
{
|
||||
#ifndef DISABLE_ORC
|
||||
/* Update these as we test on more architectures */
|
||||
pa_cpu_x86_flag_t x86_want_flags = PA_CPU_X86_MMX | PA_CPU_X86_SSE | PA_CPU_X86_SSE2 | PA_CPU_X86_SSE3 | PA_CPU_X86_SSSE3 | PA_CPU_X86_SSE4_1 | PA_CPU_X86_SSE4_2;
|
||||
|
||||
/* Enable Orc svolume optimizations */
|
||||
if ((cpu_info.cpu_type == PA_CPU_X86) && (cpu_info.flags.x86 & x86_want_flags))
|
||||
if ((cpu_info.cpu_type == PA_CPU_X86) && (cpu_info.flags.x86 & x86_want_flags)) {
|
||||
pa_volume_func_init_orc();
|
||||
return TRUE;
|
||||
}
|
||||
#endif
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue