summaryrefslogtreecommitdiff
path: root/libavcodec/arm/asm.S
diff options
context:
space:
mode:
authorMans Rullgard <mans@mansr.com>2011-01-26 22:26:51 +0000
committerMans Rullgard <mans@mansr.com>2011-02-02 11:35:51 +0000
commitb9a639ddd6e102edbf94a26b5106386792e2e4c8 (patch)
treed40de54a86f3714aea391212106102ae36a46532 /libavcodec/arm/asm.S
parentc73d99e672329c8f2df290736ffc474c360ac4ae (diff)
ARM: add helper macro for declaring constant data
Signed-off-by: Mans Rullgard <mans@mansr.com>
Diffstat (limited to 'libavcodec/arm/asm.S')
-rw-r--r--libavcodec/arm/asm.S10
1 files changed, 10 insertions, 0 deletions
diff --git a/libavcodec/arm/asm.S b/libavcodec/arm/asm.S
index e0507834f2..cf73a77609 100644
--- a/libavcodec/arm/asm.S
+++ b/libavcodec/arm/asm.S
@@ -50,6 +50,16 @@ ELF .type \name, %function
\name:
.endm
+.macro const name, align=2
+ .macro endconst
+ELF .size \name, . - \name
+ .purgem endconst
+ .endm
+ .section .rodata
+ .align \align
+\name:
+.endm
+
.macro mov32 rd, val
#if HAVE_ARMV6T2
movw \rd, #(\val) & 0xffff