[x264-devel] commit: fix conversions between vectors with differing element types or numbers of subparts errors (Guillaume Poirier )
git version control
git at videolan.org
Tue Apr 21 17:33:30 CEST 2009
x264 | branch: master | Guillaume Poirier <gpoirier at mplayerhq.hu> | Tue Apr 21 17:32:21 2009 +0200| [4fc8c03ad568efe3dd2f57db33b0863d29cb63a0] | committer: Guillaume Poirier
fix conversions between vectors with differing element types or numbers of subparts errors
> http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=4fc8c03ad568efe3dd2f57db33b0863d29cb63a0
---
common/ppc/pixel.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/common/ppc/pixel.c b/common/ppc/pixel.c
index 5120544..2f7082a 100644
--- a/common/ppc/pixel.c
+++ b/common/ppc/pixel.c
@@ -1905,7 +1905,7 @@ static uint64_t pixel_hadamard_ac_altivec( uint8_t *pix, int stride, const vec_u
vec_u16_t addabs67 = vec_add( VEC_ABSOLUTE(pix16_d6), VEC_ABSOLUTE(pix16_d7) );
vec_u16_t sum4_v = vec_add(vec_add(addabs01, addabs23), vec_add(addabs45, addabs67));
- vec_ste(vec_sums(vec_sum4s(sum4_v, zero_s32v), zero_s32v), 12, sum4_tab);
+ vec_ste(vec_sums(vec_sum4s((vec_s16_t)sum4_v, zero_s32v), zero_s32v), 12, sum4_tab);
vec_s16_t tmpi0 = vec_add(pix16_d0, pix16_d4);
vec_s16_t tmpi4 = vec_sub(pix16_d0, pix16_d4);
@@ -1933,7 +1933,7 @@ static uint64_t pixel_hadamard_ac_altivec( uint8_t *pix, int stride, const vec_u
VEC_ABSOLUTE( vec_sub(pix16_d3, pix16_d7) ) );
vec_u16_t sum8_v = vec_add( vec_add(addsum04, addsum15), vec_add(addsum26, addsum37) );
- vec_ste(vec_sums( vec_sum4s(sum8_v, zero_s32v), zero_s32v), 12, sum8_tab);
+ vec_ste(vec_sums(vec_sum4s((vec_s16_t)sum8_v, zero_s32v), zero_s32v), 12, sum8_tab);
int sum8 = sum8_tab[3];
More information about the x264-devel
mailing list