]> git.ipfire.org Git - ipfire-2.x.git/blob - src/patches/openssl-1.0.2a_disable_ssse3_for_amd.patch
Package openssl-compat (1.0.2.n)
[ipfire-2.x.git] / src / patches / openssl-1.0.2a_disable_ssse3_for_amd.patch
1 diff -Naur openssl-1.0.2a.org/crypto/x86cpuid.pl openssl-1.0.2a/crypto/x86cpuid.pl
2 --- openssl-1.0.2a.org/crypto/x86cpuid.pl 2015-03-19 14:30:36.000000000 +0100
3 +++ openssl-1.0.2a/crypto/x86cpuid.pl 2015-04-28 13:47:57.853521020 +0200
4 @@ -71,6 +71,7 @@
5 &mov ("eax",1);
6 &xor ("ecx","ecx");
7 &cpuid ();
8 + &and ("ecx",0xfffffdff); # clear SSSE3 because it is incredible slow on AMD's
9 &bt ("edx",28);
10 &jnc (&label("generic"));
11 &shr ("ebx",16);