diff options
Diffstat (limited to 'vp8/common')
-rw-r--r-- | vp8/common/generic/systemdependent.c | 1 | ||||
-rw-r--r-- | vp8/common/rtcd_defs.sh | 7 | ||||
-rw-r--r-- | vp8/common/systemdependent.h | 6 | ||||
-rw-r--r-- | vp8/common/x86/postproc_mmx.asm | 3 |
4 files changed, 9 insertions, 8 deletions
diff --git a/vp8/common/generic/systemdependent.c b/vp8/common/generic/systemdependent.c index 2de019d70..d84df3348 100644 --- a/vp8/common/generic/systemdependent.c +++ b/vp8/common/generic/systemdependent.c @@ -82,6 +82,7 @@ static int get_cpu_count() } #endif +void vp8_clear_system_state_c() {}; void vp8_machine_specific_config(VP8_COMMON *ctx) { diff --git a/vp8/common/rtcd_defs.sh b/vp8/common/rtcd_defs.sh index ee892ded2..9ebf389d8 100644 --- a/vp8/common/rtcd_defs.sh +++ b/vp8/common/rtcd_defs.sh @@ -19,6 +19,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 # prototype void vp8_dequantize_b "struct blockd*, short *dqc" diff --git a/vp8/common/systemdependent.h b/vp8/common/systemdependent.h index f99c4bb2a..e6b0456f7 100644 --- a/vp8/common/systemdependent.h +++ b/vp8/common/systemdependent.h @@ -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 *); diff --git a/vp8/common/x86/postproc_mmx.asm b/vp8/common/x86/postproc_mmx.asm index 966c586e4..5cf110b53 100644 --- a/vp8/common/x86/postproc_mmx.asm +++ b/vp8/common/x86/postproc_mmx.asm @@ -61,7 +61,7 @@ sym(vp8_mbpost_proc_down_mmx): mov rcx, 8 .init_borderd ; initialize borders lea rdi, [rdi + rax] - movq [rdi], xmm1 + movq [rdi], mm1 dec rcx jne .init_borderd @@ -193,7 +193,6 @@ sym(vp8_mbpost_proc_down_mmx): movq mm4, [sym(vp8_rv) + rcx*2] %endif paddw mm1, mm4 - ;paddw xmm1, eight8s psraw mm1, 4 packuswb mm1, mm0 |