diff -ur crypto.orig/bn/asm/rsaz-x86_64.pl crypto/bn/asm/rsaz-x86_64.pl
old
|
new
|
|
115 | 115 | |
116 | 116 | if (!$addx && `$ENV{CC} -v 2>&1` =~ /(^Apple (?:clang|LLVM) version) ([5-9])\.([0-9]+)/) { |
117 | 117 | my $ver = $2 + $3/100.0; # 3.1->3.01, 3.10->3.10 |
118 | | $addx = ($ver>=5.00); # Apple LLVM version 5.0 corresponds to LLVM 3.3, see http://trac.macports.org/wiki/XcodeVersionInfo |
| 118 | $addx = ($ver>5.00); # Apple LLVM version 5.0 corresponds to LLVM 3.3, see http://trac.macports.org/wiki/XcodeVersionInfo |
119 | 119 | } |
120 | 120 | |
121 | 121 | if (!$addx && `$ENV{CC} -v 2>&1` =~ /(^clang version|based on LLVM) ([3-9])\.([0-9]+)/) { |
122 | 122 | my $ver = $2 + $3/100.0; # 3.1->3.01, 3.10->3.10 |
123 | | $addx = ($ver>=3.03); |
| 123 | $addx = ($ver>=3.4); |
124 | 124 | } |
125 | 125 | |
126 | 126 | ($out, $inp, $mod) = ("%rdi", "%rsi", "%rbp"); # common internal API |
diff -ur crypto.orig/bn/asm/x86_64-mont.pl crypto/bn/asm/x86_64-mont.pl
old
|
new
|
|
70 | 70 | |
71 | 71 | if (!$addx && `$ENV{CC} -v 2>&1` =~ /(^Apple (?:clang|LLVM) version) ([5-9])\.([0-9]+)/) { |
72 | 72 | my $ver = $2 + $3/100.0; # 3.1->3.01, 3.10->3.10 |
73 | | $addx = ($ver>=5.00); # Apple LLVM version 5.0 corresponds to LLVM 3.3, see http://trac.macports.org/wiki/XcodeVersionInfo |
| 73 | $addx = ($ver>5.00); # Apple LLVM version 5.0 corresponds to LLVM 3.3, see http://trac.macports.org/wiki/XcodeVersionInfo |
74 | 74 | } |
75 | 75 | |
76 | 76 | if (!$addx && `$ENV{CC} -v 2>&1` =~ /(^clang version|based on LLVM) ([3-9])\.([0-9]+)/) { |
77 | 77 | my $ver = $2 + $3/100.0; # 3.1->3.01, 3.10->3.10 |
78 | | $addx = ($ver>=3.03); |
| 78 | $addx = ($ver>=3.4); |
79 | 79 | } |
80 | 80 | |
81 | 81 | # int bn_mul_mont( |
diff -ur crypto.orig/bn/asm/x86_64-mont5.pl crypto/bn/asm/x86_64-mont5.pl
old
|
new
|
|
55 | 55 | |
56 | 56 | if (!$addx && `$ENV{CC} -v 2>&1` =~ /(^Apple (?:clang|LLVM) version) ([5-9])\.([0-9]+)/) { |
57 | 57 | my $ver = $2 + $3/100.0; # 3.1->3.01, 3.10->3.10 |
58 | | $addx = ($ver>=5.00); # Apple LLVM version 5.0 corresponds to LLVM 3.3, see http://trac.macports.org/wiki/XcodeVersionInfo |
| 58 | $addx = ($ver>5.00); # Apple LLVM version 5.0 corresponds to LLVM 3.3, see http://trac.macports.org/wiki/XcodeVersionInfo |
59 | 59 | } |
60 | 60 | |
61 | 61 | if (!$addx && `$ENV{CC} -v 2>&1` =~ /(^clang version|based on LLVM) ([3-9])\.([0-9]+)/) { |
62 | 62 | my $ver = $2 + $3/100.0; # 3.1->3.01, 3.10->3.10 |
63 | | $addx = ($ver>=3.03); |
| 63 | $addx = ($ver>=3.4); |
64 | 64 | } |
65 | 65 | |
66 | 66 | # int bn_mul_mont_gather5( |
diff -ur crypto.orig/ec/asm/ecp_nistz256-x86_64.pl crypto/ec/asm/ecp_nistz256-x86_64.pl
old
|
new
|
|
87 | 87 | # Apple clang versions 3.1 and 4.1 correspond to LLVM 3.1 |
88 | 88 | $avx = ($ver>=2.01) + ($ver>=3.01); |
89 | 89 | # Apple LLVM version 5.0 corresponds to LLVM 3.3 |
90 | | $addx = ($ver>=5.00); |
| 90 | $addx = ($ver>5.00); |
91 | 91 | } |
92 | 92 | |
93 | 93 | if (!$addx && `$ENV{CC} -v 2>&1` =~ /(^clang version|based on LLVM) ([3-9])\.([0-9]+)/) { |
94 | 94 | my $ver = $2 + $3/100.0; # 3.1->3.01, 3.10->3.10 |
95 | 95 | $avx = ($ver>=3.0) + ($ver>=3.01); |
96 | | $addx = ($ver>=3.03); |
| 96 | $addx = ($ver>=3.4); |
97 | 97 | } |
98 | 98 | |
99 | 99 | $code.=<<___; |