summaryrefslogtreecommitdiffstats
path: root/mp3lib/decode_MMX.c
diff options
context:
space:
mode:
authoratmos4 <atmos4@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-01-19 04:47:32 +0000
committeratmos4 <atmos4@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-01-19 04:47:32 +0000
commite6f0381dc20ece537e6b0ad03d8c78053de0cc6e (patch)
treefff47b24807146a442beca5d3198ee07a1e42069 /mp3lib/decode_MMX.c
parent6afa7d698893915b4ed59bb8b14cb04d5b0a8d04 (diff)
downloadmpv-e6f0381dc20ece537e6b0ad03d8c78053de0cc6e.tar.bz2
mpv-e6f0381dc20ece537e6b0ad03d8c78053de0cc6e.tar.xz
mangling in mp3lib + stdcall undefined fix with cygwin
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4247 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mp3lib/decode_MMX.c')
-rw-r--r--mp3lib/decode_MMX.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/mp3lib/decode_MMX.c b/mp3lib/decode_MMX.c
index 97ac7f34d9..916863dade 100644
--- a/mp3lib/decode_MMX.c
+++ b/mp3lib/decode_MMX.c
@@ -7,6 +7,7 @@
* Local ChangeLog:
* - Partial loops unrolling and removing MOVW insn from loops
*/
+#include "../mangle.h"
#define real float /* ugly - but only way */
static unsigned long long __attribute__((aligned(8))) null_one = 0x0000ffff0000ffffULL;
@@ -81,11 +82,11 @@ __asm __volatile(
"emms\n\t"
"pushl %%edx\n\t"
"pushl %%ecx\n\t"
- "call *dct64_MMX_func\n\t"
+ "call *"MANGLE(dct64_MMX_func)"\n\t"
"leal 1(%%ebx), %%ecx\n\t"
"subl %%ebp,%%ebx\n\t"
"pushl %%ecx\n\t"
- "leal decwins(%%ebx,%%ebx,1), %%edx\n\t"
+ "leal "MANGLE(decwins)"(%%ebx,%%ebx,1), %%edx\n\t"
"shrl $1, %%ecx\n\t"
".align 16\n\t"
".L3:\n\t"
@@ -124,8 +125,8 @@ __asm __volatile(
"movq (%%edi), %%mm1\n\t"
"punpckldq %%mm4, %%mm0\n\t"
- "pand one_null, %%mm1\n\t"
- "pand null_one, %%mm0\n\t"
+ "pand "MANGLE(one_null)", %%mm1\n\t"
+ "pand "MANGLE(null_one)", %%mm0\n\t"
"por %%mm0, %%mm1\n\t"
"movq %%mm1,(%%edi)\n\t"
@@ -206,8 +207,8 @@ __asm __volatile(
"movq (%%edi), %%mm1\n\t"
"punpckldq %%mm4, %%mm0\n\t"
- "pand one_null, %%mm1\n\t"
- "pand null_one, %%mm0\n\t"
+ "pand "MANGLE(one_null)", %%mm1\n\t"
+ "pand "MANGLE(null_one)", %%mm0\n\t"
"por %%mm0, %%mm1\n\t"
"movq %%mm1,(%%edi)\n\t"