mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-07 13:30:03 -05:00
cpu: check for CMOV flag before using this intsruction in assembly
http://pulseaudio.org/ticket/776
This commit is contained in:
parent
c88e4680f0
commit
54025c96a7
3 changed files with 8 additions and 4 deletions
|
|
@ -309,7 +309,7 @@ void pa_volume_func_init_mmx (pa_cpu_x86_flag_t flags) {
|
|||
run_test ();
|
||||
#endif
|
||||
|
||||
if (flags & PA_CPU_X86_MMX) {
|
||||
if ((flags & PA_CPU_X86_MMX) && (flags & PA_CPU_X86_CMOV)) {
|
||||
pa_log_info("Initialising MMX optimized functions.");
|
||||
|
||||
pa_set_volume_func (PA_SAMPLE_S16NE, (pa_do_volume_func_t) pa_volume_s16ne_mmx);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue