Mercurial > mplayer.hg
changeset 5291:421969d55d5f
MANGLE() the 3dnow code
author | arpi |
---|---|
date | Sat, 23 Mar 2002 21:48:55 +0000 |
parents | d4367189b2ff |
children | 1863e0c6af59 |
files | mp3lib/dct64_3dnow.c mp3lib/dct64_k7.c |
diffstat | 2 files changed, 8 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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 */
--- 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 */