[x264-devel] [PATCH 1/1] PPC: Disable quant_2x2_dc_altivec in Power9

Michail Alvanos malvanos at gmail.com
Sun Apr 14 12:41:59 CEST 2019


PPC: Disable quant_2x2_dc_altivec in Power9

quant_2x2_dc_altivec runs slower in Power9 although it runs on on Power8:
Power9: quant_2x2_dc_c: 75 quant_2x2_dc_altivec: 89 (disabled)
Power8: quant_2x2_dc_c: 55 quant_2x2_dc_altivec: 46

---
 common/quant.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/common/quant.c b/common/quant.c
index e8fc38d6..81bcbd3f 100644
--- a/common/quant.c
+++ b/common/quant.c
@@ -738,7 +738,9 @@ void x264_quant_init( x264_t *h, int cpu, x264_quant_function_t *pf )
 #if HAVE_ALTIVEC
     if( cpu&X264_CPU_ALTIVEC )
     {
+#ifndef __POWER9_VECTOR__
         pf->quant_2x2_dc = x264_quant_2x2_dc_altivec;
+#endif
         pf->quant_4x4_dc = x264_quant_4x4_dc_altivec;
         pf->quant_4x4 = x264_quant_4x4_altivec;
         pf->quant_4x4x4 = x264_quant_4x4x4_altivec;
-- 
2.17.1



More information about the x264-devel mailing list