changeset 11624:03e8cbee7333

100l bug found by Zoli, wasted time and unfairly delocalized the metrics
author rfelker
date Thu, 11 Dec 2003 04:56:19 +0000
parents ecaf7047b6e8
children a18a54997671
files libmpcodecs/pullup.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/pullup.c	Thu Dec 11 04:47:42 2003 +0000
+++ b/libmpcodecs/pullup.c	Thu Dec 11 04:56:19 2003 +0000
@@ -61,7 +61,7 @@
 {
 	int ret;
 	asm volatile (
-		"movl $8, %%ecx \n\t"
+		"movl $4, %%ecx \n\t"
 		"pxor %%mm6, %%mm6 \n\t"
 		"pxor %%mm7, %%mm7 \n\t"
 		"subl %%eax, %%edi \n\t"
@@ -163,7 +163,7 @@
 static int licomb_y(unsigned char *a, unsigned char *b, int s)
 {
 	int i, j, diff=0;
-	for (i=8; i; i--) {
+	for (i=4; i; i--) {
 		for (j=0; j<8; j++)
 			diff += ABS((a[j]<<1) - b[j-s] - b[j])
 				+ ABS((b[j]<<1) - a[j] - a[j+s]);