summaryrefslogtreecommitdiffstats
path: root/mp3lib
diff options
context:
space:
mode:
authorarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-03-23 21:48:55 +0000
committerarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-03-23 21:48:55 +0000
commit27a401bacbeec2b20ff81bf834d83ac7f8f0d7d9 (patch)
treecc091eec18ffd3775b68f8dcec84b89e82c36e58 /mp3lib
parentea4b9eb45f3c07e13d7ad2aa52605a7fc491cc02 (diff)
downloadmpv-27a401bacbeec2b20ff81bf834d83ac7f8f0d7d9.tar.bz2
mpv-27a401bacbeec2b20ff81bf834d83ac7f8f0d7d9.tar.xz
MANGLE() the 3dnow code
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5292 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mp3lib')
-rw-r--r--mp3lib/dct64_3dnow.c6
-rw-r--r--mp3lib/dct64_k7.c6
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 */