Commit a96e7810 authored by Ben Laurie's avatar Ben Laurie
Browse files

Squeeze a bit more speed out of MD5 assembler.

parent 679ab7c3
Loading
Loading
Loading
Loading
+4
Changes for CHANGES: 4 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -5,6 +5,10 @@

 Changes between 0.9.1c and 0.9.2

  *) Squeeze another 7% of speed out of MD5 assembler, at least on a P2. I'd
     like to hear about it if this slows down other processors.
     [Ben Laurie]

  *) Add CygWin32 platform information to Configure script.
     [Alan Batie <batie@aahz.jf.intel.com>]

+1 −1
Changes for crypto/md5/Makefile.ssl: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -61,7 +61,7 @@ asm/mx86-out.o: asm/mx86unix.cpp
asm/mx86bsdi.o: asm/mx86unix.cpp
	$(CPP) -DBSDI asm/mx86unix.cpp | sed 's/ :/:/' | as -o asm/mx86bsdi.o

asm/mx86unix.cpp:
asm/mx86unix.cpp: asm/md5-586.pl
	(cd asm; perl md5-586.pl cpp >mx86unix.cpp)

files:
+4 −3
Changes for crypto/md5/asm/md5-586.pl: 4 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -54,7 +54,6 @@ sub R0
	&and($tmp1,$b); # F function - part 3
	&lea($a,&DWP($t,$a,$tmp2,1));

	&mov($tmp2,&DWP($xo[$ki+1]*4,$K,"",0)) if ($pos != 2);
	&xor($tmp1,$d); # F function - part 4

	&add($a,$tmp1);
@@ -62,8 +61,10 @@ sub R0
	&mov($tmp1,&Np($c)) if $pos == 1;	# next tmp1 for R1

	&rotl($a,$s);
	&add($a,$b);

	&mov($tmp2,&DWP($xo[$ki+1]*4,$K,"",0)) if ($pos != 2);

	&add($a,$b);
	}

sub R1
@@ -106,10 +107,10 @@ if (($n & 1) == 0)
	&lea($a,&DWP($t,$a,$tmp2,1));

	&add($a,$tmp1);
	 &mov($tmp2,&DWP($xo[$ki+1]*4,$K,"",0));

	&rotl($a,$s);

	&mov($tmp2,&DWP($xo[$ki+1]*4,$K,"",0));
	&mov($tmp1,&Np($c));
	}
else
−730

File deleted.