summaryrefslogtreecommitdiff
path: root/libavcodec/arm/asm.S
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec/arm/asm.S')
-rw-r--r--libavcodec/arm/asm.S11
1 files changed, 11 insertions, 0 deletions
diff --git a/libavcodec/arm/asm.S b/libavcodec/arm/asm.S
index e2595f4789..0aa1639998 100644
--- a/libavcodec/arm/asm.S
+++ b/libavcodec/arm/asm.S
@@ -18,6 +18,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include "config.h"
+
.macro require8, val=1
.eabi_attribute 24, \val
.endm
@@ -34,3 +36,12 @@
.func \name
\name:
.endm
+
+ .macro movrel rd, val
+#if defined(HAVE_ARMV6T2) && !defined(CONFIG_SHARED)
+ movw \rd, #:lower16:\val
+ movt \rd, #:upper16:\val
+#else
+ ldr \rd, =\val
+#endif
+ .endm