summaryrefslogtreecommitdiffstats
path: root/crypto/x86_64cpuid.pl
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2007-07-21 16:46:27 +0200
committerAndy Polyakov <appro@openssl.org>2007-07-21 16:46:27 +0200
commit3df2eff4bd39ecdd94fc559acd78e581d302f68d (patch)
treef88f58de3a2a0f1f641dd7004c8b0b23ca1c656f /crypto/x86_64cpuid.pl
parentComplete synchronization of aes-x86_64 with aes-586. (diff)
downloadopenssl-3df2eff4bd39ecdd94fc559acd78e581d302f68d.tar.xz
openssl-3df2eff4bd39ecdd94fc559acd78e581d302f68d.zip
x86*cpuid update.
Diffstat (limited to 'crypto/x86_64cpuid.pl')
-rw-r--r--crypto/x86_64cpuid.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/x86_64cpuid.pl b/crypto/x86_64cpuid.pl
index f90bbc9ab0..e29792a157 100644
--- a/crypto/x86_64cpuid.pl
+++ b/crypto/x86_64cpuid.pl
@@ -134,8 +134,6 @@ OPENSSL_ia32_cpuid:
mov \$1,%eax
cpuid
- bt \$28,%edx # test hyper-threading bit
- jnc .Ldone
cmp \$0,%r9d
jne .Lnotintel
or \$1<<20,%edx # use reserved bit to engage RC4_CHAR
@@ -144,6 +142,8 @@ OPENSSL_ia32_cpuid:
je .Lnotintel
or \$1<<30,%edx # use reserved bit to skip unrolled loop
.Lnotintel:
+ bt \$28,%edx # test hyper-threading bit
+ jnc .Ldone
shr \$16,%ebx
cmp \$1,%bl # see if cache is shared
ja .Ldone