Commit 7b91f238 authored by Erik de Castro Lopo's avatar Erik de Castro Lopo

libFLAC/cpu.c: Improve logic

Only call `FLAC__cpu_have_cpuid_asm_ia32` if `FLAC__HAS_NASM` is
defined.

Patch-from: "lvqcl.mail" <lvqcl.mail@gmail.com>
parent 0ff89843
......@@ -107,7 +107,7 @@ ia32_cpu_info (FLAC__CPUInfo *info)
#if !defined FLAC__NO_ASM && (defined FLAC__HAS_NASM || FLAC__HAS_X86INTRIN)
info->use_asm = true; /* we assume a minimum of 80386 with FLAC__CPU_IA32 */
#if !FLAC__HAS_X86INTRIN
#if defined FLAC__HAS_NASM
if(!FLAC__cpu_have_cpuid_asm_ia32())
return;
#endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment