summaryrefslogtreecommitdiffstats
path: root/mp3lib/decode_MMX.c
diff options
context:
space:
mode:
authorzuxy <zuxy@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-05-22 14:00:39 +0000
committerzuxy <zuxy@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-05-22 14:00:39 +0000
commitc31cbc62df4b4834f7340081ed47396dd5ecab7a (patch)
tree045538b36123c48550611fd7e9136c5fda03f56e /mp3lib/decode_MMX.c
parente5113fdfec02eb93f0c05da4470081dd6fce3318 (diff)
downloadmpv-c31cbc62df4b4834f7340081ed47396dd5ecab7a.tar.bz2
mpv-c31cbc62df4b4834f7340081ed47396dd5ecab7a.tar.xz
Replace hardcoded 32-bit leal with equivalent add/sub so pointer arithmetic will be 64-bit under AMD64
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23376 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mp3lib/decode_MMX.c')
-rw-r--r--mp3lib/decode_MMX.c21
1 files changed, 10 insertions, 11 deletions
diff --git a/mp3lib/decode_MMX.c b/mp3lib/decode_MMX.c
index 3d0e11c3d5..daa85ac780 100644
--- a/mp3lib/decode_MMX.c
+++ b/mp3lib/decode_MMX.c
@@ -124,9 +124,9 @@ ASMALIGN(4)
"por %%mm0, %%mm1\n\t"
"movq %%mm1,(%%edi)\n\t"
- "leal 64(%%esi),%%esi\n\t"
- "leal 128(%%edx),%%edx\n\t"
- "leal 8(%%edi),%%edi\n\t"
+ "add $64,%%esi\n\t"
+ "add $128,%%edx\n\t"
+ "add $8,%%edi\n\t"
"decl %%ecx\n\t"
"jnz .L03\n\t"
@@ -149,11 +149,10 @@ ASMALIGN(4)
"packssdw %%mm0,%%mm0\n\t"
"movd %%mm0,%%eax\n\t"
"movw %%ax, (%%edi)\n\t"
- "leal 32(%%esi),%%esi\n\t"
- "leal 64(%%edx),%%edx\n\t"
- "leal 4(%%edi),%%edi\n\t"
-
- "subl $64,%%esi\n\t"
+ "sub $32,%%esi\n\t"
+ "add $64,%%edx\n\t"
+ "add $4,%%edi\n\t"
+
"movl $7,%%ecx\n\t"
ASMALIGN(4)
".L04:\n\t"
@@ -201,9 +200,9 @@ ASMALIGN(4)
"por %%mm0, %%mm1\n\t"
"movq %%mm1,(%%edi)\n\t"
- "subl $64,%%esi\n\t"
- "addl $128,%%edx\n\t"
- "leal 8(%%edi),%%edi\n\t"
+ "sub $64,%%esi\n\t"
+ "add $128,%%edx\n\t"
+ "add $8,%%edi\n\t"
"decl %%ecx\n\t"
"jnz .L04\n\t"