diff options
author | Mans Rullgard <mans@mansr.com> | 2011-01-26 22:26:51 +0000 |
---|---|---|
committer | Mans Rullgard <mans@mansr.com> | 2011-02-02 11:35:51 +0000 |
commit | b9a639ddd6e102edbf94a26b5106386792e2e4c8 (patch) | |
tree | d40de54a86f3714aea391212106102ae36a46532 /libavcodec/arm | |
parent | c73d99e672329c8f2df290736ffc474c360ac4ae (diff) | |
download | ffmpeg-b9a639ddd6e102edbf94a26b5106386792e2e4c8.tar.gz |
ARM: add helper macro for declaring constant data
Signed-off-by: Mans Rullgard <mans@mansr.com>
Diffstat (limited to 'libavcodec/arm')
-rw-r--r-- | libavcodec/arm/asm.S | 10 |
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 |