diff --git a/src/dsp/cpu.c b/src/dsp/cpu.c index 8223b391..6d16171b 100644 --- a/src/dsp/cpu.c +++ b/src/dsp/cpu.c @@ -87,6 +87,9 @@ static int x86CPUInfo(CPUFeature feature) { if (feature == kSSE3) { return 0 != (cpu_info[2] & 0x00000001); } + if (feature == kSSE4_1) { + return 0 != (cpu_info[2] & 0x00080000); + } if (feature == kAVX) { // bits 27 (OSXSAVE) & 28 (256-bit AVX) if ((cpu_info[2] & 0x18000000) == 0x18000000) { diff --git a/src/dsp/dsp.h b/src/dsp/dsp.h index 0db4f04f..8ed5b104 100644 --- a/src/dsp/dsp.h +++ b/src/dsp/dsp.h @@ -102,6 +102,7 @@ extern "C" { typedef enum { kSSE2, kSSE3, + kSSE4_1, kAVX, kAVX2, kNEON,