summaryrefslogtreecommitdiffstats
path: root/mp3lib
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-11-19 16:44:19 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-11-19 16:44:19 +0000
commitaa72278e59d1a923a79f27bb9fec54a6324fe952 (patch)
treefb21eba881cfa8599e7eb9a58dcb603f819710cf /mp3lib
parentbe39bdecdba0e770ceff358a7c17fe01ab06e546 (diff)
downloadmpv-aa72278e59d1a923a79f27bb9fec54a6324fe952.tar.bz2
mpv-aa72278e59d1a923a79f27bb9fec54a6324fe952.tar.xz
Use ASMALIGN macro for better compatibility and remove SYS_DARWIN
#ifdef hack introduced in r21056. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21062 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mp3lib')
-rw-r--r--mp3lib/decode_MMX.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/mp3lib/decode_MMX.c b/mp3lib/decode_MMX.c
index f4340dc83d..47c1db84e6 100644
--- a/mp3lib/decode_MMX.c
+++ b/mp3lib/decode_MMX.c
@@ -48,7 +48,6 @@ unsigned long __attribute__((aligned(16))) costab_mmx[] =
1060439283,
};
-#ifndef SYS_DARWIN
static int temp; // buggy gcc 3.x fails if this is moved into the function :(
void synth_1to1_MMX_s(real *bandPtr, int channel, short *samples,
short *buffs, int *bo)
@@ -92,7 +91,7 @@ __asm __volatile(
"pushl %%ecx\n\t"
"leal "MANGLE(mp3lib_decwins)"(%%ebx,%%ebx,1), %%edx\n\t"
"shrl $1, %%ecx\n\t"
-".balign 16\n\t"
+ASMALIGN(4)
".L03:\n\t"
"movq (%%edx),%%mm0\n\t"
"movq 64(%%edx),%%mm4\n\t"
@@ -170,7 +169,7 @@ __asm __volatile(
".next_loop:\n\t"
"subl $64,%%esi\n\t"
"movl $7,%%ecx\n\t"
-".balign 16\n\t"
+ASMALIGN(4)
".L04:\n\t"
"movq (%%edx),%%mm0\n\t"
"movq 64(%%edx),%%mm4\n\t"
@@ -247,4 +246,3 @@ __asm __volatile(
:"m"(bandPtr),"m"(channel),"m"(samples),"m"(buffs),"m"(bo), "m"(temp)
:"memory","%edi","%esi","%ebx","%esp");
}
-#endif /* SYS_DARWIN */