Browse Source

Proper typecast for vector bool

Originally committed as revision 5250 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Luca Barbato 20 years ago
parent
commit
46641a135c
1 changed files with 6 additions and 4 deletions
  1. +6
    -4
      libavcodec/ppc/dsputil_snow_altivec.c

+ 6
- 4
libavcodec/ppc/dsputil_snow_altivec.c View File

@@ -556,12 +556,14 @@ static void inner_add_yblock_bw_8_obmc_16_altivec(uint8_t *obmc,
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));


Loading…
Cancel
Save