diff options
author | Mans Rullgard <mans@mansr.com> | 2011-01-26 22:26:51 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-02-04 03:08:09 +0100 |
commit | 01b75fa93111eda1707069d46631632b7dcc374b (patch) | |
tree | 92ddda6cce8f606c3174d7beae5ed25da3251481 /libavcodec/arm/asm.S | |
parent | fe2ff6d24745f0739bfde9061092c1268557310b (diff) | |
download | ffmpeg-01b75fa93111eda1707069d46631632b7dcc374b.tar.gz |
ARM: add helper macro for declaring constant data
Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit b9a639ddd6e102edbf94a26b5106386792e2e4c8)
Diffstat (limited to 'libavcodec/arm/asm.S')
-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 |