changeset 5134:879b809b00cb libavcodec

kill one vector constant value load by the right combination of vec_splatX/vec_sl patch by Sigbjorn Skjaeret %sskjer-1 A broadpark P no%
author gpoirier
date Tue, 12 Jun 2007 21:24:25 +0000
parents 5039df79f8cb
children 724e7fad19d9
files ppc/h264_altivec.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ppc/h264_altivec.c	Tue Jun 12 21:17:22 2007 +0000
+++ b/ppc/h264_altivec.c	Tue Jun 12 21:24:25 2007 +0000
@@ -763,8 +763,7 @@
 
 #define h264_deblock_p0_q0(p0, p1, q0, q1, tc0masked) {                                           \
                                                                                                   \
-    const vec_u8_t A0v = (vec_u8_t) AVV(0xA0,0xA0,0xA0,0xA0,0xA0,0xA0,0xA0,0xA0,                  \
-                                        0xA0,0xA0,0xA0,0xA0,0xA0,0xA0,0xA0,0xA0);                 \
+    const vector unsigned char A0v = vec_sl(vec_splat_u8(10), vec_splat_u8(4));                   \
                                                                                                   \
     register vector unsigned char pq0bit = vec_xor(p0,q0);                                        \
     register vector unsigned char temp;                                                           \