Skip to content
Snippets Groups Projects
Commit a4edc5a9 authored by Måns Rullgård's avatar Måns Rullgård
Browse files

ARM: add mov32 macro

Originally committed as revision 23888 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 480cb7ed
No related branches found
No related tags found
No related merge requests found
...@@ -49,6 +49,17 @@ ELF .type \name, %function ...@@ -49,6 +49,17 @@ ELF .type \name, %function
\name: \name:
.endm .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 .macro movrel rd, val
#if HAVE_ARMV6T2 && !CONFIG_PIC #if HAVE_ARMV6T2 && !CONFIG_PIC
movw \rd, #:lower16:\val movw \rd, #:lower16:\val
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment