From a4edc5a9df99bdbe1b56fa4f6656ce37dfb48f37 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?M=C3=A5ns=20Rullg=C3=A5rd?= <mans@mansr.com>
Date: Tue, 29 Jun 2010 14:48:45 +0000
Subject: [PATCH] ARM: add mov32 macro

Originally committed as revision 23888 to svn://svn.ffmpeg.org/ffmpeg/trunk
---
 libavcodec/arm/asm.S | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/libavcodec/arm/asm.S b/libavcodec/arm/asm.S
index 9eea433acb0..724e7a00eac 100644
--- a/libavcodec/arm/asm.S
+++ b/libavcodec/arm/asm.S
@@ -49,6 +49,17 @@ ELF     .type   \name, %function
 \name:
 .endm
 
+.macro  mov32   rd, val
+#if HAVE_ARMV6T2
+        movw            \rd, #(\val) & 0xffff
+    .if (\val) >> 16
+        movt            \rd, #(\val) >> 16
+    .endif
+#else
+        ldr             \rd, =\val
+#endif
+.endm
+
 .macro  movrel rd, val
 #if HAVE_ARMV6T2 && !CONFIG_PIC
         movw            \rd, #:lower16:\val
-- 
GitLab