History

ARM: add helper macro for declaring constant data

Mans Rullgard committed 15 years ago

Commit 01b75fa1 parent fe2ff6d1 file · +10 −0Browse files

Unified · Split

libavcodec/arm/asm.S+10−0
@@ -50,6 +50,16 @@ ELF .type \name, %function · 49 unmodified lines
5050 \name:
5151 .endm
5252
53+.macro const name, align=2
54+ .macro endconst
55+ELF .size \name, . - \name
56+ .purgem endconst
57+ .endm
58+ .section .rodata
59+ .align \align
60+\name:
61+.endm
62+
5363 .macro mov32 rd, val
5464 #if HAVE_ARMV6T2
5565 movw \rd, #(\val) & 0xffff

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t