mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
ARM: add helper macro for declaring constant data
Signed-off-by: Mans Rullgard <mans@mansr.com> (cherry picked from commit b9a639ddd6e102edbf94a26b5106386792e2e4c8)
This commit is contained in:
parent
fe2ff6d247
commit
01b75fa931
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user