summaryrefslogtreecommitdiff
path: root/vpx_ports/x86.h
diff options
context:
space:
mode:
Diffstat (limited to 'vpx_ports/x86.h')
-rw-r--r--vpx_ports/x86.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/vpx_ports/x86.h b/vpx_ports/x86.h
index feffc3e69..190c8643a 100644
--- a/vpx_ports/x86.h
+++ b/vpx_ports/x86.h
@@ -74,6 +74,7 @@ void __cpuid(int CPUInfo[4], int info_type);
#define HAS_SSE2 0x04
#define HAS_SSE3 0x08
#define HAS_SSSE3 0x10
+#define HAS_SSE4_1 0x20
#ifndef BIT
#define BIT(n) (1<<n)
#endif
@@ -117,6 +118,8 @@ x86_simd_caps(void)
if (reg_ecx & BIT(9)) flags |= HAS_SSSE3;
+ if (reg_ecx & BIT(19)) flags |= HAS_SSE4_1;
+
return flags & mask;
}