projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
sha1-586.pl: let masm compile AVX code.
[openssl.git]
/
crypto
/
sha
/
asm
/
sha1-586.pl
diff --git
a/crypto/sha/asm/sha1-586.pl
b/crypto/sha/asm/sha1-586.pl
index 6b706be3d7558fbb314d22e4560cf2b8c320e03c..a9dbeae694981ae3850f084ba99d90dbdce37a5b 100644
(file)
--- a/
crypto/sha/asm/sha1-586.pl
+++ b/
crypto/sha/asm/sha1-586.pl
@@
-119,6
+119,10
@@
$ymm=1 if ($xmm && !$ymm && $ARGV[0] eq "win32n" &&
`nasm -v 2>&1` =~ /NASM version ([2-9]\.[0-9]+)/ &&
$1>=2.03); # first version supporting AVX
`nasm -v 2>&1` =~ /NASM version ([2-9]\.[0-9]+)/ &&
$1>=2.03); # first version supporting AVX
+$ymm=1 if ($xmm && !$ymm && $ARGV[0] eq "win32" &&
+ `ml 2>&1` =~ /Version ([0-9]+)\./ &&
+ $1>=10); # first version supporting AVX
+
&external_label("OPENSSL_ia32cap_P") if ($xmm);
&external_label("OPENSSL_ia32cap_P") if ($xmm);