Bug fix: Issue 532: VPX codec executes emms instruction without

checking CPU capabilities

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

Change-Id: I9efa693b0c33694c871189841b8ac59c1fc554e2
This commit is contained in:
Scott LaVarnway 2013-03-15 14:27:15 -07:00
parent 720d4eaaba
commit 3299f88800
3 changed files with 8 additions and 6 deletions

View 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)
{

View 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
#

View File

@ -10,12 +10,6 @@
#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 *);