OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6b110d3
)
ppc: util_altivec: Surround AltiVec-related code by appropriate ifdefs
author
Diego Biurrun
<diego@biurrun.de>
Fri, 26 Apr 2013 22:35:08 +0000
(
00:35
+0200)
committer
Diego Biurrun
<diego@biurrun.de>
Tue, 30 Apr 2013 10:19:44 +0000
(12:19 +0200)
This prevents non-AltiVec-enabled compilers from choking.
libavutil/ppc/util_altivec.h
patch
|
blob
|
history
diff --git
a/libavutil/ppc/util_altivec.h
b/libavutil/ppc/util_altivec.h
index
bdbf862
..
f2e0b13
100644
(file)
--- 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 */