diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-01-13 20:31:17 +0100 |
---|---|---|
committer | Colin Guthrie <cguthrie@mandriva.org> | 2010-02-09 22:32:39 +0000 |
commit | 54025c96a7133964aa1568fe6d2e6c5ad05651bf (patch) | |
tree | a5f6552814d0394b25993b3eec9f34abf296cb90 /src/pulsecore/svolume_mmx.c | |
parent | c88e4680f050a6ac65335b1d8148287cc4566b00 (diff) |
cpu: check for CMOV flag before using this intsruction in assembly
http://pulseaudio.org/ticket/776
Diffstat (limited to 'src/pulsecore/svolume_mmx.c')
-rw-r--r-- | src/pulsecore/svolume_mmx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pulsecore/svolume_mmx.c b/src/pulsecore/svolume_mmx.c index a011789c..0e222cdc 100644 --- a/src/pulsecore/svolume_mmx.c +++ b/src/pulsecore/svolume_mmx.c @@ -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); |