]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blame - src/patches/openssl-1.0.2a_disable_ssse3_for_amd.patch
squid 3.5.28: latest patches (01-02)
[people/pmueller/ipfire-2.x.git] / src / patches / openssl-1.0.2a_disable_ssse3_for_amd.patch
CommitLineData
0e2f9b01
AF
1diff -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);