aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/i386/x86inc.asm
diff options
context:
space:
mode:
authorJason Garrett-Glaser <darkshikari@gmail.com>2008-12-19 03:01:08 +0000
committerJason Garrett-Glaser <darkshikari@gmail.com>2008-12-19 03:01:08 +0000
commit40c7d0ae3c093413bb3970b69f68958ac7e21380 (patch)
treece697d6d91302160c3702a1fb2958e33b28ff5b2 /libavcodec/i386/x86inc.asm
parenta5b807a6c181090b65b06ddc714f74cc1605c5bd (diff)
downloadffmpeg-40c7d0ae3c093413bb3970b69f68958ac7e21380.tar.gz
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
Diffstat (limited to 'libavcodec/i386/x86inc.asm')
-rw-r--r--libavcodec/i386/x86inc.asm18
1 files changed, 6 insertions, 12 deletions
diff --git a/libavcodec/i386/x86inc.asm b/libavcodec/i386/x86inc.asm
index 54c4679669..3729b5b101 100644
--- a/libavcodec/i386/x86inc.asm
+++ b/libavcodec/i386/x86inc.asm
@@ -370,20 +370,14 @@ DECLARE_REG 6, ebp, ebp, bp, null, [esp + stack_offset + 28]
; Symbol prefix for C linkage
%macro cglobal 1-2+
+ %xdefine %1 ff_%1
+ %ifdef PREFIX
+ %xdefine %1 _ %+ %1
+ %endif
%ifidn __OUTPUT_FORMAT__,elf
- %ifdef PREFIX
- global _%1:function hidden
- %define %1 _%1
- %else
- global %1:function hidden
- %endif
+ global %1:function hidden
%else
- %ifdef PREFIX
- global _%1
- %define %1 _%1
- %else
- global %1
- %endif
+ global %1
%endif
align function_align
%1: