aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/ppc
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-08-16 14:21:34 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-08-16 14:21:40 +0200
commitd7ed473d5c4b7156c535d264c3c6613d727ba36e (patch)
treec70c882aa8b2a52dc6912e349fea566eaeb8496b /libavcodec/ppc
parentc02945b6d27af0e277434780c01bae8d40f5fd24 (diff)
parentf399e406af0c8507bb3ab7b94995ad7b8f409093 (diff)
downloadffmpeg-d7ed473d5c4b7156c535d264c3c6613d727ba36e.tar.gz
Merge remote-tracking branch 'qatar/master'
* qatar/master: altivec: perform an explicit unaligned load Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/ppc')
-rw-r--r--libavcodec/ppc/int_altivec.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libavcodec/ppc/int_altivec.c b/libavcodec/ppc/int_altivec.c
index 1d2ee834b0..d4e0c852ea 100644
--- a/libavcodec/ppc/int_altivec.c
+++ b/libavcodec/ppc/int_altivec.c
@@ -84,14 +84,12 @@ static int32_t scalarproduct_int16_altivec(const int16_t *v1, const int16_t *v2,
{
int i;
LOAD_ZERO;
- const vec_s16 *pv;
register vec_s16 vec1;
register vec_s32 res = vec_splat_s32(0), t;
int32_t ires;
for(i = 0; i < order; i += 8){
- pv = (const vec_s16*)v1;
- vec1 = vec_perm(pv[0], pv[1], vec_lvsl(0, v1));
+ vec1 = vec_unaligned_load(v1);
t = vec_msum(vec1, vec_ld(0, v2), zero_s32v);
res = vec_sums(t, res);
v1 += 8;