Mercurial > libavcodec.hg
diff ppc/int_altivec.c @ 10082:9f4b529bd5c0 libavcodec
PPC: remove unnecessary alignment on local variables
Storing a single element from a vector where all elements have the same
value does not require an aligned destination. Which element is stored
depends on the alignment of the destination address, but since they all
have the same value, the result is the same regardless of the alignment.
author | mru |
---|---|
date | Mon, 24 Aug 2009 21:42:22 +0000 |
parents | 7cee7292d5cc |
children | 5da7180afadf |
line wrap: on
line diff
--- a/ppc/int_altivec.c Mon Aug 24 17:35:47 2009 +0000 +++ b/ppc/int_altivec.c Mon Aug 24 21:42:22 2009 +0000 @@ -114,7 +114,7 @@ register vec_s16 vec1, *pv; register vec_s32 res = vec_splat_s32(0), t; register vec_u32 shifts; - DECLARE_ALIGNED_16(int32_t, ires); + int32_t ires; shifts = zero_u32v; if(shift & 0x10) shifts = vec_add(shifts, vec_sl(vec_splat_u32(0x08), vec_splat_u32(0x1)));