[SCM] libav/experimental: ARM: add helper macro for declaring constant data

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 17:23:04 UTC 2013


The following commit has been merged in the experimental branch:
commit b9a639ddd6e102edbf94a26b5106386792e2e4c8
Author: Mans Rullgard <mans at mansr.com>
Date:   Wed Jan 26 22:26:51 2011 +0000

    ARM: add helper macro for declaring constant data
    
    Signed-off-by: Mans Rullgard <mans at mansr.com>

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

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list