changeset 12015:b9bbf46b3623 libavcodec

ARM: add mov32 macro
author mru
date Tue, 29 Jun 2010 14:48:45 +0000
parents e21223172ca8
children ebef2d6d5a8e
files arm/asm.S
diffstat 1 files changed, 11 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/arm/asm.S	Tue Jun 29 14:48:41 2010 +0000
+++ b/arm/asm.S	Tue Jun 29 14:48:45 2010 +0000
@@ -49,6 +49,17 @@
 \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