[FFmpeg-devel] [PATCH] ARM: add helper macro for declaring constant data

Mans Rullgard mans
Tue Feb 1 23:44:01 CET 2011


Signed-off-by: Mans Rullgard <mans at mansr.com>
---
 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 e050783..cf73a77 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
-- 
1.7.3.5




More information about the ffmpeg-devel mailing list