Commit 01b75fa9 authored by Mans Rullgard's avatar Mans Rullgard Committed by Michael Niedermayer

ARM: add helper macro for declaring constant data

Signed-off-by: 's avatarMans Rullgard <mans@mansr.com>
(cherry picked from commit b9a639dd)
parent fe2ff6d2
...@@ -50,6 +50,16 @@ ELF .type \name, %function ...@@ -50,6 +50,16 @@ ELF .type \name, %function
\name: \name:
.endm .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 .macro mov32 rd, val
#if HAVE_ARMV6T2 #if HAVE_ARMV6T2
movw \rd, #(\val) & 0xffff movw \rd, #(\val) & 0xffff
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment