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

Mans Rullgard git
Fri Feb 4 03:37:01 CET 2011


ffmpeg | branch: master | Mans Rullgard <mans at mansr.com> | Wed Jan 26 22:26:51 2011 +0000| [01b75fa93111eda1707069d46631632b7dcc374b] | committer: Michael Niedermayer

ARM: add helper macro for declaring constant data

Signed-off-by: Mans Rullgard <mans at mansr.com>
(cherry picked from commit b9a639ddd6e102edbf94a26b5106386792e2e4c8)

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=01b75fa93111eda1707069d46631632b7dcc374b
---

 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




More information about the ffmpeg-cvslog mailing list