summaryrefslogtreecommitdiffstats
path: root/crypto/cast/asm
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2014-10-01 23:55:54 +0200
committerAndy Polyakov <appro@openssl.org>2014-10-01 23:59:14 +0200
commitae4af7a067531245c20f032afe61a68d60d39d11 (patch)
tree0a9f4fc89f0547388f608bb4230ba4cd900e8fc9 /crypto/cast/asm
parentdf8c39d52256c2e5327a636928b6d1ed05f695a2 (diff)
crypto/cast/asm/cast-586.pl: +5% on PIII and remove obsolete readme.
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'crypto/cast/asm')
-rw-r--r--crypto/cast/asm/cast-586.pl9
-rw-r--r--crypto/cast/asm/readme7
2 files changed, 6 insertions, 10 deletions
diff --git a/crypto/cast/asm/cast-586.pl b/crypto/cast/asm/cast-586.pl
index bf6810d335..ec2eab179d 100644
--- a/crypto/cast/asm/cast-586.pl
+++ b/crypto/cast/asm/cast-586.pl
@@ -1,6 +1,9 @@
#!/usr/local/bin/perl
-# define for pentium pro friendly version
+# This flag makes the inner loop one cycle longer, but generates
+# code that runs %30 faster on the pentium pro/II, 44% faster
+# of PIII, while only %7 slower on the pentium.
+# By default, this flag is on.
$ppro=1;
$0 =~ m/(.*[\/\\])[^\/\\]+$/; $dir=$1;
@@ -140,11 +143,11 @@ sub E_CAST {
&rotl( $tmp4, &LB($tmp1));
if ($ppro) {
- &mov( $tmp2, $tmp4); # B
&xor( $tmp1, $tmp1);
+ &mov( $tmp2, 0xff);
&movb( &LB($tmp1), &HB($tmp4)); # A
- &and( $tmp2, 0xff);
+ &and( $tmp2, $tmp4);
&shr( $tmp4, 16); #
&xor( $tmp3, $tmp3);
diff --git a/crypto/cast/asm/readme b/crypto/cast/asm/readme
deleted file mode 100644
index fbcd76289e..0000000000
--- a/crypto/cast/asm/readme
+++ /dev/null
@@ -1,7 +0,0 @@
-There is a ppro flag in cast-586 which turns on/off
-generation of pentium pro/II friendly code
-
-This flag makes the inner loop one cycle longer, but generates
-code that runs %30 faster on the pentium pro/II, while only %7 slower
-on the pentium. By default, this flag is on.
-