changeset 3237:c2bef2a233d2 libavcodec

Proper typecast for vector bool
author lu_zero
date Fri, 31 Mar 2006 09:59:53 +0000
parents df94556f5b8b
children 21ba2e68ce03
files ppc/dsputil_snow_altivec.c
diffstat 1 files changed, 6 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/ppc/dsputil_snow_altivec.c	Thu Mar 30 16:24:38 2006 +0000
+++ b/ppc/dsputil_snow_altivec.c	Fri Mar 31 09:59:53 2006 +0000
@@ -556,12 +556,14 @@
                                                 vec_splat_u32(7))),
                                 vec_splat_u32(8));
 
-                mask = vec_sl((vector signed int) vec_cmpeq(v[x],v[x]),
+                mask = (vector bool int)
+                        vec_sl((vector signed int) vec_cmpeq(v[x],v[x]),
                                                         vec_splat_u32(8));
-                mask = vec_and(v[x],vec_nor(mask,mask));
+                mask = (vector bool int)
+                        vec_and(v[x],vec_nor(mask,mask));
 
-                mask = (vector signed int) vec_cmpeq((vector signed int)mask,
-                                        (vector signed int)vec_splat_u32(0));
+                mask = (vector bool int)
+                        vec_cmpeq((vector signed int)mask, vec_splat_s32(0));
 
                 vs = vec_sra(v[x],vec_splat_u32(8));
                 vs = vec_sra(v[x],vec_splat_u32(8));