summaryrefslogtreecommitdiff
path: root/libavutil/ppc
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2013-04-27 00:35:08 +0200
committerDiego Biurrun <diego@biurrun.de>2013-04-30 12:19:44 +0200
commitf5eecee865a731d2412fde2f73c29f8f8115c499 (patch)
tree4fe5128e149d882be3f3bbb3f05c1c9fdf9ddeb4 /libavutil/ppc
parent6b110d3a739c31602b59887ad65c67025df3f49d (diff)
ppc: util_altivec: Surround AltiVec-related code by appropriate ifdefs
This prevents non-AltiVec-enabled compilers from choking.
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 bdbf86219d..f2e0b13177 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 */