changeset 1282:175423b2691e

Minor optimization
author nick
date Fri, 06 Jul 2001 10:59:14 +0000
parents e2db5d18f413
children c73912315dbf
files mp3lib/dct64_3dnow.s mp3lib/dct64_k7.s
diffstat 2 files changed, 14 insertions(+), 18 deletions(-) [+]
line wrap: on
line diff
--- a/mp3lib/dct64_3dnow.s	Fri Jul 06 10:36:35 2001 +0000
+++ b/mp3lib/dct64_3dnow.s	Fri Jul 06 10:59:14 2001 +0000
@@ -543,11 +543,10 @@
 	movq	%mm2, 72(%edx)
 
 	movd   48(%ecx), %mm3
+	movd   60(%ecx), %mm2
 	pfsub  52(%ecx), %mm3
+	pfsub  56(%ecx), %mm2
 	pfmul 120(%ebx), %mm3
-
-	movd   60(%ecx), %mm2
-	pfsub  56(%ecx), %mm2
 	pfmul 120(%ebx), %mm2
 	movq	%mm2, %mm1
 
@@ -583,8 +582,8 @@
 	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 @@
 	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 @@
 	popl %edi
 	popl %esi
 	popl %ebx
-	ret	$12
-
-
+	ret  $12
--- a/mp3lib/dct64_k7.s	Fri Jul 06 10:36:35 2001 +0000
+++ b/mp3lib/dct64_k7.s	Fri Jul 06 10:59:14 2001 +0000
@@ -422,11 +422,10 @@
 	movq	%mm2, 72(%edx)
 
 	movd   48(%ecx), %mm3
+	movd   60(%ecx), %mm2
 	pfsub  52(%ecx), %mm3
+	pfsub  56(%ecx), %mm2
 	pfmul 120(%ebx), %mm3
-
-	movd   60(%ecx), %mm2
-	pfsub  56(%ecx), %mm2
 	pfmul 120(%ebx), %mm2
 	movq	%mm2, %mm1
 
@@ -462,8 +461,8 @@
 	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 @@
 	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 @@
 	popl %edi
 	popl %esi
 	popl %ebx
-	ret	$12
+	ret  $12