]> granicus.if.org Git - libvpx/commitdiff
Bug fix: Issue 532: VPX codec executes emms instruction without
authorScott LaVarnway <slavarnway@google.com>
Fri, 15 Mar 2013 21:27:15 +0000 (14:27 -0700)
committerScott LaVarnway <slavarnway@google.com>
Fri, 15 Mar 2013 21:27:15 +0000 (14:27 -0700)
checking CPU capabilities

Reported by Krzysztof Kaspruk.
https://code.google.com/p/webm/issues/detail?id=532

Change-Id: I9efa693b0c33694c871189841b8ac59c1fc554e2

vp8/common/generic/systemdependent.c
vp8/common/rtcd_defs.sh
vp8/common/systemdependent.h

index 2de019d706c353cc62a8a643ea4d367cf85c6686..d84df334810d6ea217057476f516a567d9faa092 100644 (file)
@@ -82,6 +82,7 @@ static int get_cpu_count()
 }
 #endif
 
+void vp8_clear_system_state_c() {};
 
 void vp8_machine_specific_config(VP8_COMMON *ctx)
 {
index ee892ded267048fc11bdd5bc2cdfa85f7c36107f..9ebf389d8c66ff95ed172cefb1da1b9539a08394 100644 (file)
@@ -18,6 +18,13 @@ EOF
 }
 forward_decls vp8_common_forward_decls
 
+#
+# system state
+#
+prototype void vp8_clear_system_state ""
+specialize vp8_clear_system_state mmx
+vp8_clear_system_state_mmx=vpx_reset_mmx_state
+
 #
 # Dequant
 #
index f99c4bb2af5f72340ca45898cd1fa67bc44c4427..e6b0456f75bc88413981cef0096ac149d3f8f99a 100644 (file)
 
 
 #include "vpx_config.h"
-#if ARCH_X86 || ARCH_X86_64
-void vpx_reset_mmx_state(void);
-#define vp8_clear_system_state() vpx_reset_mmx_state()
-#else
-#define vp8_clear_system_state()
-#endif
 
 struct VP8Common;
 void vp8_machine_specific_config(struct VP8Common *);