[x264-devel] commit: 10l: fix compilation with GCC 4.3+ (Guillaume Poirier )

git version control git at videolan.org
Wed Feb 4 11:06:20 CET 2009


x264 | branch: master | Guillaume Poirier <gpoirier at mplayerhq.hu> | Wed Feb  4 10:04:55 2009 +0000| [122a54a0dbbfd5a8b649a6ca7eb0b7d3c42f89aa] | committer: Guillaume Poirier 

10l: fix compilation with GCC 4.3+

> http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=122a54a0dbbfd5a8b649a6ca7eb0b7d3c42f89aa
---

 common/ppc/pixel.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/common/ppc/pixel.c b/common/ppc/pixel.c
index 0476814..3968c71 100644
--- a/common/ppc/pixel.c
+++ b/common/ppc/pixel.c
@@ -1652,8 +1652,8 @@ static int x264_pixel_var_16x16_altivec( uint8_t *pix, int i_stride )
 
         pix += i_stride;
     }
-    sum_v = (vec_s32_t)vec_sums( (vec_s32_t)sum_v, zero_s32v );
-    sqr_v = (vec_s32_t)vec_sums( (vec_s32_t)sqr_v, zero_s32v );
+    sum_v = (vec_u32_t)vec_sums( (vec_s32_t)sum_v, zero_s32v );
+    sqr_v = (vec_u32_t)vec_sums( (vec_s32_t)sqr_v, zero_s32v );
     vec_ste(sum_v, 12, sum_tab);
     vec_ste(sqr_v, 12, sqr_tab);
 
@@ -1690,8 +1690,8 @@ static int x264_pixel_var_8x8_altivec( uint8_t *pix, int i_stride )
 
         pix += i_stride<<1;
     }
-    sum_v = (vec_s32_t)vec_sums( (vec_s32_t)sum_v, zero_s32v );
-    sqr_v = (vec_s32_t)vec_sums( (vec_s32_t)sqr_v, zero_s32v );
+    sum_v = (vec_u32_t)vec_sums( (vec_s32_t)sum_v, zero_s32v );
+    sqr_v = (vec_u32_t)vec_sums( (vec_s32_t)sqr_v, zero_s32v );
     vec_ste(sum_v, 12, sum_tab);
     vec_ste(sqr_v, 12, sqr_tab);
 



More information about the x264-devel mailing list