cpu: check for CMOV flag before using this intsruction in assembly

http://pulseaudio.org/ticket/776
This commit is contained in:
Lennart Poettering 2010-01-13 20:31:17 +01:00 committed by Colin Guthrie
parent c88e4680f0
commit 54025c96a7
3 changed files with 8 additions and 4 deletions

View file

@ -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);