x86cpuid fixes.
[openssl.git] / crypto / x86cpuid.pl
index 13828d5633160b34460311303b4fbfc60ff92707..ce9b8ea4dd3568952cc4b7bb0e29779fb91546d7 100644 (file)
@@ -43,7 +43,7 @@ for (@ARGV) { $sse2=1 if (/-DOPENSSL_IA32_SSE2/); }
        &shr    ("ebx",16);
        &cmp    (&LB("ebx"),1);         # see if cache is shared(*)
        &ja     (&label("nocpuid"));
-       &and    ("edx",~(1<<28));       # clear hyper-threading bit if not
+       &and    ("edx",0xefffffff);     # clear hyper-threading bit if not
 &set_label("nocpuid");
        &mov    ("eax","edx");
        &mov    ("edx","ecx");