summaryrefslogtreecommitdiff
path: root/libavutil/x86
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2012-06-19 22:55:26 +0200
committerDiego Biurrun <diego@biurrun.de>2012-06-23 16:21:50 +0200
commit65345a5a30a0e866b6944c0e6184be3feca04335 (patch)
tree134ad9723a0f65d00af419bb65f0716abc6b7e06 /libavutil/x86
parent29686d6ea3521f8cc6ca3844c4320a84c7420fa9 (diff)
x86: Add CPU flag for the i686 cmov instruction
Diffstat (limited to 'libavutil/x86')
-rw-r--r--libavutil/x86/cpu.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavutil/x86/cpu.c b/libavutil/x86/cpu.c
index 2424fe4516..b87d3a3a92 100644
--- a/libavutil/x86/cpu.c
+++ b/libavutil/x86/cpu.c
@@ -83,6 +83,8 @@ int ff_get_cpu_flags_x86(void)
cpuid(1, eax, ebx, ecx, std_caps);
family = ((eax>>8)&0xf) + ((eax>>20)&0xff);
model = ((eax>>4)&0xf) + ((eax>>12)&0xf0);
+ if (std_caps & (1 << 15))
+ rval |= AV_CPU_FLAG_CMOV;
if (std_caps & (1<<23))
rval |= AV_CPU_FLAG_MMX;
if (std_caps & (1<<25))