]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/arm/asm.S
Deobfuscate LE SHOW_[SU]BITS; these are simple sign/zero-extend
[ffmpeg] / libavcodec / arm / asm.S
index e2a86c8f3ee7547f4402ec95cadcc22294ad1b2b..1ee431d94eb63dbdb3c53d82246f4d70c1967622 100644 (file)
 
 #include "config.h"
 
-        .macro require8, val=1
 #ifdef __ELF__
-        .eabi_attribute 24, \val
+#   define ELF
+#else
+#   define ELF @
 #endif
+
+        .macro require8, val=1
+ELF     .eabi_attribute 24, \val
         .endm
 
         .macro preserve8, val=1
-#ifdef __ELF__
-        .eabi_attribute 25, \val
-#endif
+ELF     .eabi_attribute 25, \val
         .endm
 
         .macro function name, export=0
 .if \export
-        .global \name
+        .global EXTERN_ASM\name
+EXTERN_ASM\name:
 .endif
-#ifdef __ELF__
-        .type   \name, %function
-#endif
+ELF     .type   \name, %function
         .func   \name
 \name:
         .endm
 
         .macro movrel rd, val
-#if HAVE_ARMV6T2 && !CONFIG_SHARED
+#if HAVE_ARMV6T2 && !CONFIG_PIC
         movw            \rd, #:lower16:\val
         movt            \rd, #:upper16:\val
 #else
@@ -60,3 +61,7 @@
 #   define VFP   @
 #   define NOVFP
 #endif
+
+#define GLUE(a, b) a ## b
+#define JOIN(a, b) GLUE(a, b)
+#define X(s) JOIN(EXTERN_ASM, s)