aboutsummaryrefslogtreecommitdiff
path: root/libavutil/ppc
diff options
context:
space:
mode:
authorMichael Niedermayer2013-05-01 17:57:52 +0200
committerMichael Niedermayer2013-05-01 17:57:55 +0200
commit148f69eb4e4ce63b911a53bcb883b77b364f13bd (patch)
tree6c5df7704f509741319ae4c5f6c0c52436d695b9 /libavutil/ppc
parent3ad5d8694c769301a6054ed85dfdcb17240faa89 (diff)
parentf5eecee865a731d2412fde2f73c29f8f8115c499 (diff)
Merge commit 'f5eecee865a731d2412fde2f73c29f8f8115c499'
* commit 'f5eecee865a731d2412fde2f73c29f8f8115c499': ppc: util_altivec: Surround AltiVec-related code by appropriate ifdefs Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavutil/ppc')
-rw-r--r--libavutil/ppc/util_altivec.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavutil/ppc/util_altivec.h b/libavutil/ppc/util_altivec.h
index 7fe31504ed..fbf6d85b0c 100644
--- a/libavutil/ppc/util_altivec.h
+++ b/libavutil/ppc/util_altivec.h
@@ -34,6 +34,8 @@
#include "types_altivec.h"
+#if HAVE_ALTIVEC
+
// used to build registers permutation vectors (vcprm)
// the 's' are for words in the _s_econd vector
#define WORD_0 0x00,0x01,0x02,0x03
@@ -115,4 +117,6 @@ static inline vec_u8 load_with_perm_vec(int offset, uint8_t *src, vec_u8 perm_ve
return vec_perm(a, b, perm_vec);
}
+#endif /* HAVE_ALTIVEC */
+
#endif /* AVUTIL_PPC_UTIL_ALTIVEC_H */