diff options
author | Måns Rullgård <mans@mansr.com> | 2009-08-24 21:42:22 +0000 |
---|---|---|
committer | Måns Rullgård <mans@mansr.com> | 2009-08-24 21:42:22 +0000 |
commit | afe08a728ad5fa7b9211e2f1a7c7adc859e48aca (patch) | |
tree | 98e8a0485dc6a6df8ef785bd978a3d47051f2cb1 /libavcodec/ppc/int_altivec.c | |
parent | ce78113d5a4eee6adc1390694f438b98f04c92ac (diff) | |
download | ffmpeg-afe08a728ad5fa7b9211e2f1a7c7adc859e48aca.tar.gz |
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.
Originally committed as revision 19696 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/ppc/int_altivec.c')
-rw-r--r-- | libavcodec/ppc/int_altivec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/ppc/int_altivec.c b/libavcodec/ppc/int_altivec.c index 6cfcc08f93..d76a220048 100644 --- a/libavcodec/ppc/int_altivec.c +++ b/libavcodec/ppc/int_altivec.c @@ -114,7 +114,7 @@ static int32_t scalarproduct_int16_altivec(int16_t * v1, int16_t * v2, int order 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))); |