mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-14 06:59:53 -05:00
build-sys: meson: check HAVE_MMX and HAVE_SSE before calling initializers
Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/575>
This commit is contained in:
parent
2a5497bac5
commit
e0d9231bf4
3 changed files with 14 additions and 6 deletions
|
|
@ -114,16 +114,20 @@ bool pa_cpu_init_x86(pa_cpu_x86_flag_t *flags) {
|
|||
pa_cpu_get_x86_flags(flags);
|
||||
|
||||
/* activate various optimisations */
|
||||
#ifdef HAVE_MMX
|
||||
if (*flags & PA_CPU_X86_MMX) {
|
||||
pa_volume_func_init_mmx(*flags);
|
||||
pa_remap_func_init_mmx(*flags);
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_SSE
|
||||
if (*flags & (PA_CPU_X86_SSE | PA_CPU_X86_SSE2)) {
|
||||
pa_volume_func_init_sse(*flags);
|
||||
pa_remap_func_init_sse(*flags);
|
||||
pa_convert_func_init_sse(*flags);
|
||||
}
|
||||
#endif
|
||||
|
||||
return true;
|
||||
#else /* defined (__i386__) || defined (__amd64__) */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue