From 27a401bacbeec2b20ff81bf834d83ac7f8f0d7d9 Mon Sep 17 00:00:00 2001 From: arpi Date: Sat, 23 Mar 2002 21:48:55 +0000 Subject: [PATCH] MANGLE() the 3dnow code git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5292 b3059339-0415-0410-9bf9-f77b7e298cf2 --- mp3lib/dct64_3dnow.c | 6 ++++-- mp3lib/dct64_k7.c | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/mp3lib/dct64_3dnow.c b/mp3lib/dct64_3dnow.c index 0067719cb4..d631644b5f 100644 --- a/mp3lib/dct64_3dnow.c +++ b/mp3lib/dct64_3dnow.c @@ -9,6 +9,8 @@ */ #define real float /* ugly - but only way */ +#include "../mangle.h" + static unsigned long long int __attribute__((aligned(8))) x_plus_minus_3dnow = 0x8000000000000000ULL; static float plus_1f = 1.0; @@ -21,7 +23,7 @@ void __attribute__ (( __stdcall__ )) dct64_MMX_3dnow(real *a,real *b,real *c) " leal 128+%3,%%edx\n\t" " movl %0,%%esi\n\t" " movl %1,%%edi\n\t" -" movl $costab_mmx,%%ebx\n\t" +" movl $"MANGLE(costab_mmx)",%%ebx\n\t" " leal %3,%%ecx\n\t" /* Phase 1*/ @@ -500,7 +502,7 @@ void __attribute__ (( __stdcall__ )) dct64_MMX_3dnow(real *a,real *b,real *c) /* Phase 6. This is the end of easy road. */ /* Code below is coded in scalar mode. Should be optimized */ -" movd plus_1f, %%mm6\n\t" +" movd "MANGLE(plus_1f)", %%mm6\n\t" " punpckldq 120(%%ebx), %%mm6\n\t" /* mm6 = 1.0 | 120(%%ebx)*/ " movq x_plus_minus_3dnow, %%mm7\n\t" /* mm7 = +1 | -1 */ diff --git a/mp3lib/dct64_k7.c b/mp3lib/dct64_k7.c index d703b4d3d9..02ee1dc186 100644 --- a/mp3lib/dct64_k7.c +++ b/mp3lib/dct64_k7.c @@ -9,6 +9,8 @@ */ #define real float /* ugly - but only way */ +#include "../mangle.h" + static unsigned long long int __attribute__((aligned(8))) x_plus_minus_3dnow = 0x8000000000000000ULL; static float plus_1f = 1.0; @@ -21,7 +23,7 @@ void __attribute__ (( __stdcall__ )) dct64_MMX_3dnowex(real *a,real *b,real *c) " leal 128+%3,%%edx\n\t" " movl %0,%%esi\n\t" " movl %1,%%edi\n\t" -" movl $costab_mmx,%%ebx\n\t" +" movl $"MANGLE(costab_mmx)",%%ebx\n\t" " leal %3,%%ecx\n\t" /* Phase 1*/ @@ -378,7 +380,7 @@ void __attribute__ (( __stdcall__ )) dct64_MMX_3dnowex(real *a,real *b,real *c) /* Phase 6. This is the end of easy road. */ /* Code below is coded in scalar mode. Should be optimized */ -" movd plus_1f, %%mm6\n\t" +" movd "MANGLE(plus_1f)", %%mm6\n\t" " punpckldq 120(%%ebx), %%mm6\n\t" /* mm6 = 1.0 | 120(%%ebx)*/ " movq x_plus_minus_3dnow, %%mm7\n\t" /* mm7 = +1 | -1 */