Skip to content

Commit 353c7f8

Browse files
committed
fixup! character encoding noise
1 parent 0e1a615 commit 353c7f8

14 files changed

Lines changed: 66 additions & 61 deletions

File tree

deps/openssl/openssl/crypto/bn/asm/armv4-gf2m.pl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
# referred below, which improves ECDH and ECDSA verify benchmarks
2828
# by 18-40%.
2929
#
30-
# Câmara, D.; Gouvêa, C. P. L.; López, J. & Dahab, R.: Fast Software
30+
# Câmara, D.; Gouvêa, C. P. L.; López, J. & Dahab, R.: Fast Software
3131
# Polynomial Multiplication on ARM Processors using the NEON Engine.
3232
#
3333
# http://conradoplg.cryptoland.net/files/2010/12/mocrysen13.pdf
@@ -136,7 +136,7 @@
136136
################
137137
# void bn_GF2m_mul_2x2(BN_ULONG *r,
138138
# BN_ULONG a1,BN_ULONG a0,
139-
# BN_ULONG b1,BN_ULONG b0); # r[3..0]=a1a0·b1b0
139+
# BN_ULONG b1,BN_ULONG b0); # r[3..0]=a1a0·b1b0
140140
{
141141
$code.=<<___;
142142
.global bn_GF2m_mul_2x2
@@ -159,7 +159,7 @@
159159
mov $mask,#7<<2
160160
sub sp,sp,#32 @ allocate tab[8]
161161
162-
bl mul_1x1_ialu @ a1·b1
162+
bl mul_1x1_ialu @ a1·b1
163163
str $lo,[$ret,#8]
164164
str $hi,[$ret,#12]
165165
@@ -169,13 +169,13 @@
169169
eor r2,r2,$a
170170
eor $b,$b,r3
171171
eor $a,$a,r2
172-
bl mul_1x1_ialu @ a0·b0
172+
bl mul_1x1_ialu @ a0·b0
173173
str $lo,[$ret]
174174
str $hi,[$ret,#4]
175175
176176
eor $a,$a,r2
177177
eor $b,$b,r3
178-
bl mul_1x1_ialu @ (a1+a0)·(b1+b0)
178+
bl mul_1x1_ialu @ (a1+a0)·(b1+b0)
179179
___
180180
@r=map("r$_",(6..9));
181181
$code.=<<___;

deps/openssl/openssl/crypto/bn/asm/s390x-gf2m.pl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,19 +172,19 @@
172172
if ($SIZE_T==8) {
173173
my @r=map("%r$_",(6..9));
174174
$code.=<<___;
175-
bras $ra,_mul_1x1 # a1·b1
175+
bras $ra,_mul_1x1 # a1·b1
176176
stmg $lo,$hi,16($rp)
177177
178178
lg $a,`$stdframe+128+4*$SIZE_T`($sp)
179179
lg $b,`$stdframe+128+6*$SIZE_T`($sp)
180-
bras $ra,_mul_1x1 # a0·b0
180+
bras $ra,_mul_1x1 # a0·b0
181181
stmg $lo,$hi,0($rp)
182182
183183
lg $a,`$stdframe+128+3*$SIZE_T`($sp)
184184
lg $b,`$stdframe+128+5*$SIZE_T`($sp)
185185
xg $a,`$stdframe+128+4*$SIZE_T`($sp)
186186
xg $b,`$stdframe+128+6*$SIZE_T`($sp)
187-
bras $ra,_mul_1x1 # (a0+a1)·(b0+b1)
187+
bras $ra,_mul_1x1 # (a0+a1)·(b0+b1)
188188
lmg @r[0],@r[3],0($rp)
189189
190190
xgr $lo,$hi

deps/openssl/openssl/crypto/bn/asm/x86-gf2m.pl

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# the time being... Except that it has three code paths: pure integer
1515
# code suitable for any x86 CPU, MMX code suitable for PIII and later
1616
# and PCLMULQDQ suitable for Westmere and later. Improvement varies
17-
# from one benchmark and µ-arch to another. Below are interval values
17+
# from one benchmark and µ-arch to another. Below are interval values
1818
# for 163- and 571-bit ECDH benchmarks relative to compiler-generated
1919
# code:
2020
#
@@ -226,22 +226,22 @@
226226
&push ("edi");
227227
&mov ($a,&wparam(1));
228228
&mov ($b,&wparam(3));
229-
&call ("_mul_1x1_mmx"); # a1·b1
229+
&call ("_mul_1x1_mmx"); # a1·b1
230230
&movq ("mm7",$R);
231231

232232
&mov ($a,&wparam(2));
233233
&mov ($b,&wparam(4));
234-
&call ("_mul_1x1_mmx"); # a0·b0
234+
&call ("_mul_1x1_mmx"); # a0·b0
235235
&movq ("mm6",$R);
236236

237237
&mov ($a,&wparam(1));
238238
&mov ($b,&wparam(3));
239239
&xor ($a,&wparam(2));
240240
&xor ($b,&wparam(4));
241-
&call ("_mul_1x1_mmx"); # (a0+a1)·(b0+b1)
241+
&call ("_mul_1x1_mmx"); # (a0+a1)·(b0+b1)
242242
&pxor ($R,"mm7");
243243
&mov ($a,&wparam(0));
244-
&pxor ($R,"mm6"); # (a0+a1)·(b0+b1)-a1·b1-a0·b0
244+
&pxor ($R,"mm6"); # (a0+a1)·(b0+b1)-a1·b1-a0·b0
245245

246246
&movq ($A,$R);
247247
&psllq ($R,32);
@@ -266,21 +266,21 @@
266266

267267
&mov ($a,&wparam(1));
268268
&mov ($b,&wparam(3));
269-
&call ("_mul_1x1_ialu"); # a1·b1
269+
&call ("_mul_1x1_ialu"); # a1·b1
270270
&mov (&DWP(8,"esp"),$lo);
271271
&mov (&DWP(12,"esp"),$hi);
272272

273273
&mov ($a,&wparam(2));
274274
&mov ($b,&wparam(4));
275-
&call ("_mul_1x1_ialu"); # a0·b0
275+
&call ("_mul_1x1_ialu"); # a0·b0
276276
&mov (&DWP(0,"esp"),$lo);
277277
&mov (&DWP(4,"esp"),$hi);
278278

279279
&mov ($a,&wparam(1));
280280
&mov ($b,&wparam(3));
281281
&xor ($a,&wparam(2));
282282
&xor ($b,&wparam(4));
283-
&call ("_mul_1x1_ialu"); # (a0+a1)·(b0+b1)
283+
&call ("_mul_1x1_ialu"); # (a0+a1)·(b0+b1)
284284

285285
&mov ("ebp",&wparam(0));
286286
@r=("ebx","ecx","edi","esi");

deps/openssl/openssl/crypto/bn/asm/x86_64-gf2m.pl

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# in bn_gf2m.c. It's kind of low-hanging mechanical port from C for
1414
# the time being... Except that it has two code paths: code suitable
1515
# for any x86_64 CPU and PCLMULQDQ one suitable for Westmere and
16-
# later. Improvement varies from one benchmark and µ-arch to another.
16+
# later. Improvement varies from one benchmark and µ-arch to another.
1717
# Vanilla code path is at most 20% faster than compiler-generated code
1818
# [not very impressive], while PCLMULQDQ - whole 85%-160% better on
1919
# 163- and 571-bit ECDH benchmarks on Intel CPUs. Keep in mind that
@@ -184,13 +184,13 @@
184184
$code.=<<___;
185185
movdqa %xmm0,%xmm4
186186
movdqa %xmm1,%xmm5
187-
pclmulqdq \$0,%xmm1,%xmm0 # a1·b1
187+
pclmulqdq \$0,%xmm1,%xmm0 # a1·b1
188188
pxor %xmm2,%xmm4
189189
pxor %xmm3,%xmm5
190-
pclmulqdq \$0,%xmm3,%xmm2 # a0·b0
191-
pclmulqdq \$0,%xmm5,%xmm4 # (a0+a1)·(b0+b1)
190+
pclmulqdq \$0,%xmm3,%xmm2 # a0·b0
191+
pclmulqdq \$0,%xmm5,%xmm4 # (a0+a1)·(b0+b1)
192192
xorps %xmm0,%xmm4
193-
xorps %xmm2,%xmm4 # (a0+a1)·(b0+b1)-a0·b0-a1·b1
193+
xorps %xmm2,%xmm4 # (a0+a1)·(b0+b1)-a0·b0-a1·b1
194194
movdqa %xmm4,%xmm5
195195
pslldq \$8,%xmm4
196196
psrldq \$8,%xmm5
@@ -225,21 +225,21 @@
225225
mov \$0xf,$mask
226226
mov $a1,$a
227227
mov $b1,$b
228-
call _mul_1x1 # a1·b1
228+
call _mul_1x1 # a1·b1
229229
mov $lo,16(%rsp)
230230
mov $hi,24(%rsp)
231231
232232
mov 48(%rsp),$a
233233
mov 64(%rsp),$b
234-
call _mul_1x1 # a0·b0
234+
call _mul_1x1 # a0·b0
235235
mov $lo,0(%rsp)
236236
mov $hi,8(%rsp)
237237
238238
mov 40(%rsp),$a
239239
mov 56(%rsp),$b
240240
xor 48(%rsp),$a
241241
xor 64(%rsp),$b
242-
call _mul_1x1 # (a0+a1)·(b0+b1)
242+
call _mul_1x1 # (a0+a1)·(b0+b1)
243243
___
244244
@r=("%rbx","%rcx","%rdi","%rsi");
245245
$code.=<<___;

deps/openssl/openssl/crypto/modes/asm/ghash-armv4.pl

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
# processes one byte in 8.45 cycles, A9 - in 10.2, Snapdragon S4 -
4646
# in 9.33.
4747
#
48-
# Câmara, D.; Gouvêa, C. P. L.; López, J. & Dahab, R.: Fast Software
48+
# Câmara, D.; Gouvêa, C. P. L.; López, J. & Dahab, R.: Fast Software
4949
# Polynomial Multiplication on ARM Processors using the NEON Engine.
5050
#
5151
# http://conradoplg.cryptoland.net/files/2010/12/mocrysen13.pdf
@@ -126,6 +126,11 @@ ()
126126
.text
127127
.code 32
128128
129+
#ifdef __clang__
130+
#define ldrplb ldrbpl
131+
#define ldrneb ldrbne
132+
#endif
133+
129134
.type rem_4bit,%object
130135
.align 5
131136
rem_4bit:
@@ -432,12 +437,12 @@ sub clmul64x64 {
432437
veor $IN,$Xl @ inp^=Xi
433438
.Lgmult_neon:
434439
___
435-
&clmul64x64 ($Xl,$Hlo,"$IN#lo"); # H.lo·Xi.lo
440+
&clmul64x64 ($Xl,$Hlo,"$IN#lo"); # H.lo·Xi.lo
436441
$code.=<<___;
437442
veor $IN#lo,$IN#lo,$IN#hi @ Karatsuba pre-processing
438443
___
439-
&clmul64x64 ($Xm,$Hhl,"$IN#lo"); # (H.lo+H.hi)·(Xi.lo+Xi.hi)
440-
&clmul64x64 ($Xh,$Hhi,"$IN#hi"); # H.hi·Xi.hi
444+
&clmul64x64 ($Xm,$Hhl,"$IN#lo"); # (H.lo+H.hi)·(Xi.lo+Xi.hi)
445+
&clmul64x64 ($Xh,$Hhi,"$IN#hi"); # H.hi·Xi.hi
441446
$code.=<<___;
442447
veor $Xm,$Xm,$Xl @ Karatsuba post-processing
443448
veor $Xm,$Xm,$Xh

deps/openssl/openssl/crypto/modes/asm/ghash-sparcv9.pl

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@
379379
or $V,%lo(0xA0406080),$V
380380
or %l0,%lo(0x20C0E000),%l0
381381
sllx $V,32,$V
382-
or %l0,$V,$V ! (0xE0·i)&0xff=0xA040608020C0E000
382+
or %l0,$V,$V ! (0xE0·i)&0xff=0xA040608020C0E000
383383
stx $V,[%i0+16]
384384
385385
ret
@@ -399,7 +399,7 @@
399399
400400
mov 0xE1,%l7
401401
sllx %l7,57,$xE1 ! 57 is not a typo
402-
ldx [$Htable+16],$V ! (0xE0·i)&0xff=0xA040608020C0E000
402+
ldx [$Htable+16],$V ! (0xE0·i)&0xff=0xA040608020C0E000
403403
404404
xor $Hhi,$Hlo,$Hhl ! Karatsuba pre-processing
405405
xmulx $Xlo,$Hlo,$C0
@@ -411,9 +411,9 @@
411411
xmulx $Xhi,$Hhi,$Xhi
412412
413413
sll $C0,3,$sqr
414-
srlx $V,$sqr,$sqr ! ·0xE0 [implicit &(7<<3)]
414+
srlx $V,$sqr,$sqr ! ·0xE0 [implicit &(7<<3)]
415415
xor $C0,$sqr,$sqr
416-
sllx $sqr,57,$sqr ! ($C0·0xE1)<<1<<56 [implicit &0x7f]
416+
sllx $sqr,57,$sqr ! ($C0·0xE1)<<1<<56 [implicit &0x7f]
417417
418418
xor $C0,$C1,$C1 ! Karatsuba post-processing
419419
xor $Xlo,$C2,$C2
@@ -423,7 +423,7 @@
423423
xor $Xhi,$C2,$C2
424424
xor $Xhi,$C1,$C1
425425
426-
xmulxhi $C0,$xE1,$Xlo ! ·0xE1<<1<<56
426+
xmulxhi $C0,$xE1,$Xlo ! ·0xE1<<1<<56
427427
xor $C0,$C2,$C2
428428
xmulx $C1,$xE1,$C0
429429
xor $C1,$C3,$C3
@@ -453,7 +453,7 @@
453453
454454
mov 0xE1,%l7
455455
sllx %l7,57,$xE1 ! 57 is not a typo
456-
ldx [$Htable+16],$V ! (0xE0·i)&0xff=0xA040608020C0E000
456+
ldx [$Htable+16],$V ! (0xE0·i)&0xff=0xA040608020C0E000
457457
458458
and $inp,7,$shl
459459
andn $inp,7,$inp
@@ -490,9 +490,9 @@
490490
xmulx $Xhi,$Hhi,$Xhi
491491
492492
sll $C0,3,$sqr
493-
srlx $V,$sqr,$sqr ! ·0xE0 [implicit &(7<<3)]
493+
srlx $V,$sqr,$sqr ! ·0xE0 [implicit &(7<<3)]
494494
xor $C0,$sqr,$sqr
495-
sllx $sqr,57,$sqr ! ($C0·0xE1)<<1<<56 [implicit &0x7f]
495+
sllx $sqr,57,$sqr ! ($C0·0xE1)<<1<<56 [implicit &0x7f]
496496
497497
xor $C0,$C1,$C1 ! Karatsuba post-processing
498498
xor $Xlo,$C2,$C2
@@ -502,7 +502,7 @@
502502
xor $Xhi,$C2,$C2
503503
xor $Xhi,$C1,$C1
504504
505-
xmulxhi $C0,$xE1,$Xlo ! ·0xE1<<1<<56
505+
xmulxhi $C0,$xE1,$Xlo ! ·0xE1<<1<<56
506506
xor $C0,$C2,$C2
507507
xmulx $C1,$xE1,$C0
508508
xor $C1,$C3,$C3

deps/openssl/openssl/crypto/modes/asm/ghash-x86.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ sub deposit_rem_4bit {
358358
# effective address calculation and finally merge of value to Z.hi.
359359
# Reference to rem_4bit is scheduled so late that I had to >>4
360360
# rem_4bit elements. This resulted in 20-45% procent improvement
361-
# on contemporary µ-archs.
361+
# on contemporary µ-archs.
362362
{
363363
my $cnt;
364364
my $rem_4bit = "eax";

deps/openssl/openssl/crypto/modes/asm/ghashp8-ppc.pl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,9 @@
118118
le?vperm $IN,$IN,$IN,$lemask
119119
vxor $zero,$zero,$zero
120120
121-
vpmsumd $Xl,$IN,$Hl # H.lo·Xi.lo
122-
vpmsumd $Xm,$IN,$H # H.hi·Xi.lo+H.lo·Xi.hi
123-
vpmsumd $Xh,$IN,$Hh # H.hi·Xi.hi
121+
vpmsumd $Xl,$IN,$Hl # H.lo·Xi.lo
122+
vpmsumd $Xm,$IN,$H # H.hi·Xi.lo+H.lo·Xi.hi
123+
vpmsumd $Xh,$IN,$Hh # H.hi·Xi.hi
124124
125125
vpmsumd $t2,$Xl,$xC2 # 1st phase
126126
@@ -178,11 +178,11 @@
178178
.align 5
179179
Loop:
180180
subic $len,$len,16
181-
vpmsumd $Xl,$IN,$Hl # H.lo·Xi.lo
181+
vpmsumd $Xl,$IN,$Hl # H.lo·Xi.lo
182182
subfe. r0,r0,r0 # borrow?-1:0
183-
vpmsumd $Xm,$IN,$H # H.hi·Xi.lo+H.lo·Xi.hi
183+
vpmsumd $Xm,$IN,$H # H.hi·Xi.lo+H.lo·Xi.hi
184184
and r0,r0,$len
185-
vpmsumd $Xh,$IN,$Hh # H.hi·Xi.hi
185+
vpmsumd $Xh,$IN,$Hh # H.hi·Xi.hi
186186
add $inp,$inp,r0
187187
188188
vpmsumd $t2,$Xl,$xC2 # 1st phase

deps/openssl/openssl/crypto/modes/asm/ghashv8-armx.pl

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -135,10 +135,10 @@
135135
#endif
136136
vext.8 $IN,$t1,$t1,#8
137137
138-
vpmull.p64 $Xl,$H,$IN @ H.lo·Xi.lo
138+
vpmull.p64 $Xl,$H,$IN @ H.lo·Xi.lo
139139
veor $t1,$t1,$IN @ Karatsuba pre-processing
140-
vpmull2.p64 $Xh,$H,$IN @ H.hi·Xi.hi
141-
vpmull.p64 $Xm,$Hhl,$t1 @ (H.lo+H.hi)·(Xi.lo+Xi.hi)
140+
vpmull2.p64 $Xh,$H,$IN @ H.hi·Xi.hi
141+
vpmull.p64 $Xm,$Hhl,$t1 @ (H.lo+H.hi)·(Xi.lo+Xi.hi)
142142
143143
vext.8 $t1,$Xl,$Xh,#8 @ Karatsuba post-processing
144144
veor $t2,$Xl,$Xh
@@ -226,7 +226,7 @@
226226
#endif
227227
vext.8 $In,$t1,$t1,#8
228228
veor $IN,$IN,$Xl @ I[i]^=Xi
229-
vpmull.p64 $Xln,$H,$In @ H·Ii+1
229+
vpmull.p64 $Xln,$H,$In @ H·Ii+1
230230
veor $t1,$t1,$In @ Karatsuba pre-processing
231231
vpmull2.p64 $Xhn,$H,$In
232232
b .Loop_mod2x_v8
@@ -235,14 +235,14 @@
235235
.Loop_mod2x_v8:
236236
vext.8 $t2,$IN,$IN,#8
237237
subs $len,$len,#32 @ is there more data?
238-
vpmull.p64 $Xl,$H2,$IN @ H^2.lo·Xi.lo
238+
vpmull.p64 $Xl,$H2,$IN @ H^2.lo·Xi.lo
239239
cclr $inc,lo @ is it time to zero $inc?
240240
241241
vpmull.p64 $Xmn,$Hhl,$t1
242242
veor $t2,$t2,$IN @ Karatsuba pre-processing
243-
vpmull2.p64 $Xh,$H2,$IN @ H^2.hi·Xi.hi
243+
vpmull2.p64 $Xh,$H2,$IN @ H^2.hi·Xi.hi
244244
veor $Xl,$Xl,$Xln @ accumulate
245-
vpmull2.p64 $Xm,$Hhl,$t2 @ (H^2.lo+H^2.hi)·(Xi.lo+Xi.hi)
245+
vpmull2.p64 $Xm,$Hhl,$t2 @ (H^2.lo+H^2.hi)·(Xi.lo+Xi.hi)
246246
vld1.64 {$t0},[$inp],$inc @ load [rotated] I[i+2]
247247
248248
veor $Xh,$Xh,$Xhn
@@ -267,7 +267,7 @@
267267
vext.8 $In,$t1,$t1,#8
268268
vext.8 $IN,$t0,$t0,#8
269269
veor $Xl,$Xm,$t2
270-
vpmull.p64 $Xln,$H,$In @ H·Ii+1
270+
vpmull.p64 $Xln,$H,$In @ H·Ii+1
271271
veor $IN,$IN,$Xh @ accumulate $IN early
272272
273273
vext.8 $t2,$Xl,$Xl,#8 @ 2nd phase of reduction
@@ -291,10 +291,10 @@
291291
veor $IN,$IN,$Xl @ inp^=Xi
292292
veor $t1,$t0,$t2 @ $t1 is rotated inp^Xi
293293
294-
vpmull.p64 $Xl,$H,$IN @ H.lo·Xi.lo
294+
vpmull.p64 $Xl,$H,$IN @ H.lo·Xi.lo
295295
veor $t1,$t1,$IN @ Karatsuba pre-processing
296-
vpmull2.p64 $Xh,$H,$IN @ H.hi·Xi.hi
297-
vpmull.p64 $Xm,$Hhl,$t1 @ (H.lo+H.hi)·(Xi.lo+Xi.hi)
296+
vpmull2.p64 $Xh,$H,$IN @ H.hi·Xi.hi
297+
vpmull.p64 $Xm,$Hhl,$t1 @ (H.lo+H.hi)·(Xi.lo+Xi.hi)
298298
299299
vext.8 $t1,$Xl,$Xh,#8 @ Karatsuba post-processing
300300
veor $t2,$Xl,$Xh

deps/openssl/openssl/crypto/rc4/asm/rc4-x86_64.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
# achieves respectful 432MBps on 2.8GHz processor now. For reference.
5757
# If executed on Xeon, current RC4_CHAR code-path is 2.7x faster than
5858
# RC4_INT code-path. While if executed on Opteron, it's only 25%
59-
# slower than the RC4_INT one [meaning that if CPU µ-arch detection
59+
# slower than the RC4_INT one [meaning that if CPU µ-arch detection
6060
# is not implemented, then this final RC4_CHAR code-path should be
6161
# preferred, as it provides better *all-round* performance].
6262

0 commit comments

Comments
 (0)