projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
480cb7e
)
ARM: add mov32 macro
author
Måns Rullgård
<mans@mansr.com>
Tue, 29 Jun 2010 14:48:45 +0000
(14:48 +0000)
committer
Måns Rullgård
<mans@mansr.com>
Tue, 29 Jun 2010 14:48:45 +0000
(14:48 +0000)
Originally committed as revision 23888 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/arm/asm.S
patch
|
blob
|
history
diff --git
a/libavcodec/arm/asm.S
b/libavcodec/arm/asm.S
index
9eea433
..
724e7a0
100644
(file)
--- 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