summaryrefslogtreecommitdiff
path: root/libavutil/ppc
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-05-28 14:53:31 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-05-28 14:53:55 +0200
commit175aeab0b4012a540604487fbec5589427122e15 (patch)
tree2b0cf03032b84fa116605c92de8c0432a6232f5a /libavutil/ppc
parent2320731614945a5a719ae3798b2e9d9d672f2d24 (diff)
parentb5aa48551300eed678aaea86ced7086758598a35 (diff)
downloadffmpeg-175aeab0b4012a540604487fbec5589427122e15.tar.gz
Merge commit 'b5aa48551300eed678aaea86ced7086758598a35'
* commit 'b5aa48551300eed678aaea86ced7086758598a35': ppc: Move vec_unaligned_load macro to util_altivec Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavutil/ppc')
-rw-r--r--libavutil/ppc/util_altivec.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavutil/ppc/util_altivec.h b/libavutil/ppc/util_altivec.h
index c7c57919df..2c0ad5f6c6 100644
--- a/libavutil/ppc/util_altivec.h
+++ b/libavutil/ppc/util_altivec.h
@@ -106,6 +106,9 @@ static inline vec_u8 load_with_perm_vec(int offset, uint8_t *src, vec_u8 perm_ve
return vec_perm(a, b, perm_vec);
}
+#define vec_unaligned_load(b) \
+ vec_perm(vec_ld(0, b), vec_ld(15, b), vec_lvsl(0, b));
+
#endif /* HAVE_ALTIVEC */
#endif /* AVUTIL_PPC_UTIL_ALTIVEC_H */