aboutsummaryrefslogtreecommitdiff
path: root/libavutil/arm
diff options
context:
space:
mode:
authorMichael Niedermayer2014-07-22 12:46:13 +0200
committerMichael Niedermayer2014-07-22 12:46:13 +0200
commit7cdb3b2b79d78b7b3e686b3a53e904b4656d461f (patch)
tree385b6b788702258652331c138d1e9717087e4253 /libavutil/arm
parent135ea609cebb5a5d331a2550caebe161d163c190 (diff)
parent6869612f5c7d4d2f20f69a5658328a761deadb1c (diff)
Merge commit '6869612f5c7d4d2f20f69a5658328a761deadb1c'
* commit '6869612f5c7d4d2f20f69a5658328a761deadb1c': arm: Macroize the test for 'setend' CPU instruction support Conflicts: libavcodec/arm/h264dsp_init_arm.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavutil/arm')
-rw-r--r--libavutil/arm/cpu.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/libavutil/arm/cpu.h b/libavutil/arm/cpu.h
index c54558912c..f056a91ca5 100644
--- a/libavutil/arm/cpu.h
+++ b/libavutil/arm/cpu.h
@@ -30,4 +30,10 @@
#define have_vfpv3(flags) CPUEXT(flags, VFPV3)
#define have_neon(flags) CPUEXT(flags, NEON)
+/* Some functions use the 'setend' instruction which is deprecated on ARMv8
+ * and serializing on some ARMv7 cores. This macro ensures such functions
+ * are only enabled on ARMv6. */
+#define have_setend(flags) \
+ (have_armv6(flags) && !(have_vfpv3(flags) || have_neon(flags)))
+
#endif /* AVUTIL_ARM_CPU_H */