Commit 40c7d0ae authored by Jason Garrett-Glaser's avatar Jason Garrett-Glaser

Add automatic prefix handling to yasm functions. Does nothing now, but will

be useful for porting x264 asm in the future.

Originally committed as revision 16234 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent a5b807a6
...@@ -34,7 +34,7 @@ section .text align=16 ...@@ -34,7 +34,7 @@ section .text align=16
%macro FLOAT_TO_INT16_INTERLEAVE6 1 %macro FLOAT_TO_INT16_INTERLEAVE6 1
; void ff_float_to_int16_interleave6_sse(int16_t *dst, const float **src, int len) ; void ff_float_to_int16_interleave6_sse(int16_t *dst, const float **src, int len)
cglobal ff_float_to_int16_interleave6_%1, 2,7,0, dst, src, src1, src2, src3, src4, src5 cglobal float_to_int16_interleave6_%1, 2,7,0, dst, src, src1, src2, src3, src4, src5
%ifdef ARCH_X86_64 %ifdef ARCH_X86_64
%define lend r10d %define lend r10d
mov lend, r2d mov lend, r2d
......
...@@ -451,7 +451,7 @@ dispatch_tab%3%2: pointer list_of_fft ...@@ -451,7 +451,7 @@ dispatch_tab%3%2: pointer list_of_fft
; On x86_32, this function does the register saving and restoring for all of fft. ; On x86_32, this function does the register saving and restoring for all of fft.
; The others pass args in registers and don't spill anything. ; The others pass args in registers and don't spill anything.
cglobal ff_fft_dispatch%3%2, 2,5,0, z, nbits cglobal fft_dispatch%3%2, 2,5,0, z, nbits
lea r2, [dispatch_tab%3%2 GLOBAL] lea r2, [dispatch_tab%3%2 GLOBAL]
mov r2, [r2 + (nbitsq-2)*gprsize] mov r2, [r2 + (nbitsq-2)*gprsize]
call r2 call r2
......
...@@ -370,21 +370,15 @@ DECLARE_REG 6, ebp, ebp, bp, null, [esp + stack_offset + 28] ...@@ -370,21 +370,15 @@ DECLARE_REG 6, ebp, ebp, bp, null, [esp + stack_offset + 28]
; Symbol prefix for C linkage ; Symbol prefix for C linkage
%macro cglobal 1-2+ %macro cglobal 1-2+
%ifidn __OUTPUT_FORMAT__,elf %xdefine %1 ff_%1
%ifdef PREFIX %ifdef PREFIX
global _%1:function hidden %xdefine %1 _ %+ %1
%define %1 _%1
%else
global %1:function hidden
%endif %endif
%else %ifidn __OUTPUT_FORMAT__,elf
%ifdef PREFIX global %1:function hidden
global _%1
%define %1 _%1
%else %else
global %1 global %1
%endif %endif
%endif
align function_align align function_align
%1: %1:
RESET_MM_PERMUTATION ; not really needed, but makes disassembly somewhat nicer RESET_MM_PERMUTATION ; not really needed, but makes disassembly somewhat nicer
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment