aboutsummaryrefslogtreecommitdiffhomepage
path: root/mp3lib
diff options
context:
space:
mode:
authorGravatar nick <nick@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-07-06 10:59:14 +0000
committerGravatar nick <nick@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-07-06 10:59:14 +0000
commitd0569bc2df889518d940b30e6b39fdc2a29aaad5 (patch)
tree2b180a440946228ba8c9f1434c93fd8b60657aca /mp3lib
parent8ef288232cfcbaf535bccc9bb37693edc734739b (diff)
Minor optimization
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1283 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mp3lib')
-rw-r--r--mp3lib/dct64_3dnow.s17
-rw-r--r--mp3lib/dct64_k7.s15
2 files changed, 14 insertions, 18 deletions
diff --git a/mp3lib/dct64_3dnow.s b/mp3lib/dct64_3dnow.s
index 3298747377..4ab254e99a 100644
--- a/mp3lib/dct64_3dnow.s
+++ b/mp3lib/dct64_3dnow.s
@@ -543,11 +543,10 @@ dct64_MMX_3dnow:
movq %mm2, 72(%edx)
movd 48(%ecx), %mm3
- pfsub 52(%ecx), %mm3
- pfmul 120(%ebx), %mm3
-
movd 60(%ecx), %mm2
+ pfsub 52(%ecx), %mm3
pfsub 56(%ecx), %mm2
+ pfmul 120(%ebx), %mm3
pfmul 120(%ebx), %mm2
movq %mm2, %mm1
@@ -583,8 +582,8 @@ dct64_MMX_3dnow:
pfmul 120(%ebx), %mm0
pfadd %mm0, %mm1
pfadd 92(%edx), %mm0
- movd %mm0, 84(%edx)
- movd %mm1, 88(%edx)
+ punpckldq %mm1, %mm0
+ movq %mm0, 84(%edx)
movq 96(%ecx), %mm0
movq %mm0, %mm1
@@ -618,8 +617,8 @@ dct64_MMX_3dnow:
pfmul 120(%ebx), %mm0
pfadd %mm0,%mm1
pfadd 124(%edx), %mm0
- movd %mm0, 116(%edx)
- movd %mm1, 120(%edx)
+ punpckldq %mm1, %mm0
+ movq %mm0, 116(%edx)
jnz .L01
@@ -919,6 +918,4 @@ dct64_MMX_3dnow:
popl %edi
popl %esi
popl %ebx
- ret $12
-
-
+ ret $12
diff --git a/mp3lib/dct64_k7.s b/mp3lib/dct64_k7.s
index 786b147d03..bf509b2eba 100644
--- a/mp3lib/dct64_k7.s
+++ b/mp3lib/dct64_k7.s
@@ -422,11 +422,10 @@ dct64_MMX_3dnowex:
movq %mm2, 72(%edx)
movd 48(%ecx), %mm3
- pfsub 52(%ecx), %mm3
- pfmul 120(%ebx), %mm3
-
movd 60(%ecx), %mm2
+ pfsub 52(%ecx), %mm3
pfsub 56(%ecx), %mm2
+ pfmul 120(%ebx), %mm3
pfmul 120(%ebx), %mm2
movq %mm2, %mm1
@@ -462,8 +461,8 @@ dct64_MMX_3dnowex:
pfmul 120(%ebx), %mm0
pfadd %mm0, %mm1
pfadd 92(%edx), %mm0
- movd %mm0, 84(%edx)
- movd %mm1, 88(%edx)
+ punpckldq %mm1, %mm0
+ movq %mm0, 84(%edx)
movq 96(%ecx), %mm0
movq %mm0, %mm1
@@ -497,8 +496,8 @@ dct64_MMX_3dnowex:
pfmul 120(%ebx), %mm0
pfadd %mm0,%mm1
pfadd 124(%edx), %mm0
- movd %mm0, 116(%edx)
- movd %mm1, 120(%edx)
+ punpckldq %mm1, %mm0
+ movq %mm0, 116(%edx)
jnz .L01
@@ -798,4 +797,4 @@ dct64_MMX_3dnowex:
popl %edi
popl %esi
popl %ebx
- ret $12
+ ret $12