Remove unused cp_nistz256_mul_by_2.
Change-Id: I7fbe3effec27a18c5c42e6140df9ebd6229e06df Reviewed-on: https://boringssl-review.googlesource.com/13020 Reviewed-by: Adam Langley <agl@google.com> Commit-Queue: Adam Langley <agl@google.com> CQ-Verified: CQ bot account: commit-bot@chromium.org <commit-bot@chromium.org>
This commit is contained in:
committed by
CQ bot account: commit-bot@chromium.org
parent
cb42354ac3
commit
a2bdbb60ec
@@ -78,57 +78,12 @@ $code.=<<___;
|
||||
___
|
||||
|
||||
{
|
||||
################################################################################
|
||||
# void ecp_nistz256_mul_by_2(uint64_t res[4], uint64_t a[4]);
|
||||
|
||||
my ($a0,$a1,$a2,$a3)=map("%r$_",(8..11));
|
||||
my ($t0,$t1,$t2,$t3,$t4)=("%rax","%rdx","%rcx","%r12","%r13");
|
||||
my ($r_ptr,$a_ptr,$b_ptr)=("%rdi","%rsi","%rdx");
|
||||
|
||||
$code.=<<___;
|
||||
|
||||
.type ecp_nistz256_mul_by_2,\@function,2
|
||||
.align 64
|
||||
ecp_nistz256_mul_by_2:
|
||||
push %r12
|
||||
push %r13
|
||||
|
||||
mov 8*0($a_ptr), $a0
|
||||
xor $t4,$t4
|
||||
mov 8*1($a_ptr), $a1
|
||||
add $a0, $a0 # a0:a3+a0:a3
|
||||
mov 8*2($a_ptr), $a2
|
||||
adc $a1, $a1
|
||||
mov 8*3($a_ptr), $a3
|
||||
lea .Lpoly(%rip), $a_ptr
|
||||
mov $a0, $t0
|
||||
adc $a2, $a2
|
||||
adc $a3, $a3
|
||||
mov $a1, $t1
|
||||
adc \$0, $t4
|
||||
|
||||
sub 8*0($a_ptr), $a0
|
||||
mov $a2, $t2
|
||||
sbb 8*1($a_ptr), $a1
|
||||
sbb 8*2($a_ptr), $a2
|
||||
mov $a3, $t3
|
||||
sbb 8*3($a_ptr), $a3
|
||||
sbb \$0, $t4
|
||||
|
||||
cmovc $t0, $a0
|
||||
cmovc $t1, $a1
|
||||
mov $a0, 8*0($r_ptr)
|
||||
cmovc $t2, $a2
|
||||
mov $a1, 8*1($r_ptr)
|
||||
cmovc $t3, $a3
|
||||
mov $a2, 8*2($r_ptr)
|
||||
mov $a3, 8*3($r_ptr)
|
||||
|
||||
pop %r13
|
||||
pop %r12
|
||||
ret
|
||||
.size ecp_nistz256_mul_by_2,.-ecp_nistz256_mul_by_2
|
||||
|
||||
################################################################################
|
||||
# void ecp_nistz256_neg(uint64_t res[4], uint64_t a[4]);
|
||||
.globl ecp_nistz256_neg
|
||||
|
||||
Reference in New Issue
Block a user