# HG changeset patch # User arpi # Date 1016920135 0 # Node ID 421969d55d5ff4e74e65eaf8052ee030f9bfe0f4 # Parent d4367189b2ff7a34c54565e79ab644343c2ad58d MANGLE() the 3dnow code diff -r d4367189b2ff -r 421969d55d5f mp3lib/dct64_3dnow.c --- a/mp3lib/dct64_3dnow.c Sat Mar 23 21:44:05 2002 +0000 +++ b/mp3lib/dct64_3dnow.c Sat Mar 23 21:48:55 2002 +0000 @@ -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 @@ " 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 @@ /* 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 -r d4367189b2ff -r 421969d55d5f mp3lib/dct64_k7.c --- a/mp3lib/dct64_k7.c Sat Mar 23 21:44:05 2002 +0000 +++ b/mp3lib/dct64_k7.c Sat Mar 23 21:48:55 2002 +0000 @@ -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 @@ " 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 @@ /* 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 */