projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a1a45c5
)
x86cpuid.pl: make it work with older CPUs.
author
Andy Polyakov
<appro@openssl.org>
Mon, 4 Mar 2013 19:05:04 +0000
(20:05 +0100)
committer
Andy Polyakov
<appro@openssl.org>
Mon, 18 Mar 2013 18:51:13 +0000
(19:51 +0100)
PR: 3005
(cherry picked from commit
5702e965d759dde8a098d8108660721ba2b93a7d
)
crypto/x86cpuid.pl
patch
|
blob
|
history
diff --git
a/crypto/x86cpuid.pl
b/crypto/x86cpuid.pl
index a7464af19b771d48aca8b3669e827ff843d29c82..201df910781a86cea663ada56bb2bd3c2ec08f17 100644
(file)
--- a/
crypto/x86cpuid.pl
+++ b/
crypto/x86cpuid.pl
@@
-60,6
+60,7
@@
for (@ARGV) { $sse2=1 if (/-DOPENSSL_IA32_SSE2/); }
&inc ("esi"); # number of cores
&mov ("eax",1);
+ &xor ("ecx","ecx");
&cpuid ();
&bt ("edx",28);
&jnc (&label("done"));
@@
-84,6
+85,7
@@
for (@ARGV) { $sse2=1 if (/-DOPENSSL_IA32_SSE2/); }
&set_label("nocacheinfo");
&mov ("eax",1);
+ &xor ("ecx","ecx");
&cpuid ();
&cmp ("ebp",0);
&jne (&label("notP4"));