aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/arm/intreadwrite.h
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2015-09-18 01:00:43 -0300
committerJames Almer <jamrial@gmail.com>2015-09-18 12:41:29 -0300
commit36e1665d3d068f085d17d72aaf40d4373c8bc217 (patch)
treede1b736d4e5c5731fa731a69ab57597799f35ab1 /libavutil/arm/intreadwrite.h
parent2f9ab159607fd088f8ced1e603da14d203fbfffe (diff)
downloadffmpeg-36e1665d3d068f085d17d72aaf40d4373c8bc217.tar.gz
avutil/attributes: add AV_GCC_VERSION_AT_MOST
Reviewed-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavutil/arm/intreadwrite.h')
-rw-r--r--libavutil/arm/intreadwrite.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavutil/arm/intreadwrite.h b/libavutil/arm/intreadwrite.h
index 2340a9a935..60fc860cbb 100644
--- a/libavutil/arm/intreadwrite.h
+++ b/libavutil/arm/intreadwrite.h
@@ -23,14 +23,14 @@
#include "config.h"
#include "libavutil/attributes.h"
-#if HAVE_FAST_UNALIGNED && HAVE_INLINE_ASM && !AV_GCC_VERSION_AT_LEAST(4,7)
+#if HAVE_FAST_UNALIGNED && HAVE_INLINE_ASM && AV_GCC_VERSION_AT_MOST(4,6)
#define AV_RN16 AV_RN16
static av_always_inline unsigned AV_RN16(const void *p)
{
const uint8_t *q = p;
unsigned v;
-#if !AV_GCC_VERSION_AT_LEAST(4,6)
+#if AV_GCC_VERSION_AT_MOST(4,5)
__asm__ ("ldrh %0, %1" : "=r"(v) : "m"(*(const uint16_t *)q));
#elif defined __thumb__
__asm__ ("ldrh %0, %1" : "=r"(v) : "m"(q[0]), "m"(q[1]));