Browse Source

ARM: add helper macro for declaring constant data

Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit b9a639ddd6)
tags/n0.8
Mans Rullgard Michael Niedermayer 14 years ago
parent
commit
01b75fa931
1 changed files with 10 additions and 0 deletions
  1. +10
    -0
      libavcodec/arm/asm.S

+ 10
- 0
libavcodec/arm/asm.S View File

@@ -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…
Cancel
Save