[x264-devel] [PATCH 2/9] arm: add missing macro instantiation for x264_pixel_avg_4x16_neon

Janne Grunau janne-x264 at jannau.net
Sun Mar 16 23:26:39 CET 2014


checkasm --bench on a cortex-a9:
avg_4x16_c: 8910
avg_4x16_neon: 2091
---
 common/arm/mc-a.S | 1 +
 common/arm/mc-c.c | 2 ++
 2 files changed, 3 insertions(+)

diff --git a/common/arm/mc-a.S b/common/arm/mc-a.S
index 90f1611..6267e35 100644
--- a/common/arm/mc-a.S
+++ b/common/arm/mc-a.S
@@ -181,6 +181,7 @@ function x264_pixel_avg_\w\()x\h\()_neon
 AVGH  4, 2
 AVGH  4, 4
 AVGH  4, 8
+AVGH  4, 16
 AVGH  8, 4
 AVGH  8, 8
 AVGH  8, 16
diff --git a/common/arm/mc-c.c b/common/arm/mc-c.c
index 16ea1c5..d68369f 100644
--- a/common/arm/mc-c.c
+++ b/common/arm/mc-c.c
@@ -37,6 +37,7 @@ void x264_pixel_avg_16x8_neon ( uint8_t *, intptr_t, uint8_t *, intptr_t, uint8_
 void x264_pixel_avg_8x16_neon ( uint8_t *, intptr_t, uint8_t *, intptr_t, uint8_t *, intptr_t, int );
 void x264_pixel_avg_8x8_neon  ( uint8_t *, intptr_t, uint8_t *, intptr_t, uint8_t *, intptr_t, int );
 void x264_pixel_avg_8x4_neon  ( uint8_t *, intptr_t, uint8_t *, intptr_t, uint8_t *, intptr_t, int );
+void x264_pixel_avg_4x16_neon ( uint8_t *, intptr_t, uint8_t *, intptr_t, uint8_t *, intptr_t, int );
 void x264_pixel_avg_4x8_neon  ( uint8_t *, intptr_t, uint8_t *, intptr_t, uint8_t *, intptr_t, int );
 void x264_pixel_avg_4x4_neon  ( uint8_t *, intptr_t, uint8_t *, intptr_t, uint8_t *, intptr_t, int );
 void x264_pixel_avg_4x2_neon  ( uint8_t *, intptr_t, uint8_t *, intptr_t, uint8_t *, intptr_t, int );
@@ -229,6 +230,7 @@ void x264_mc_init_arm( int cpu, x264_mc_functions_t *pf )
     pf->avg[PIXEL_8x16]  = x264_pixel_avg_8x16_neon;
     pf->avg[PIXEL_8x8]   = x264_pixel_avg_8x8_neon;
     pf->avg[PIXEL_8x4]   = x264_pixel_avg_8x4_neon;
+    pf->avg[PIXEL_4x16]  = x264_pixel_avg_4x16_neon;
     pf->avg[PIXEL_4x8]   = x264_pixel_avg_4x8_neon;
     pf->avg[PIXEL_4x4]   = x264_pixel_avg_4x4_neon;
     pf->avg[PIXEL_4x2]   = x264_pixel_avg_4x2_neon;
-- 
1.9.0



More information about the x264-devel mailing list