diff options
author | Diego Biurrun <diego@biurrun.de> | 2014-05-28 03:29:33 -0700 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2014-05-28 03:29:33 -0700 |
commit | b5aa48551300eed678aaea86ced7086758598a35 (patch) | |
tree | e7dd2344e66c1d2993597fa728d209d444dd3080 /libavutil/ppc/util_altivec.h | |
parent | 593886b5dd2b583657aa3fd80bb173f702c9710d (diff) | |
download | ffmpeg-b5aa48551300eed678aaea86ced7086758598a35.tar.gz |
ppc: Move vec_unaligned_load macro to util_altivec
This allows reusing it from multiple files.
Diffstat (limited to 'libavutil/ppc/util_altivec.h')
-rw-r--r-- | libavutil/ppc/util_altivec.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavutil/ppc/util_altivec.h b/libavutil/ppc/util_altivec.h index 4b94b04ff1..5624ac5523 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 */ |