Skip to content

Commit f334547

Browse files
sunnya97FiloSottile
authored andcommitted
internal/radix51: fix !amd64 build (lightReduce -> carryPropagate) (#29)
1 parent af147e8 commit f334547

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

internal/radix51/fe_mul.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,5 +104,5 @@ func (v *FieldElement) Mul(x, y *FieldElement) *FieldElement {
104104
// finally from r_4 to r_0 . Each of these carries is done as one copy, one
105105
// right shift by 51, one logical and with 2^51 − 1, and one addition.
106106
*v = FieldElement{r00, r10, r20, r30, r40}
107-
return v.lightReduce1().lightReduce2()
107+
return v.carryPropagate1().carryPropagate2()
108108
}

internal/radix51/fe_square.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,5 +78,5 @@ func (v *FieldElement) Square(x *FieldElement) *FieldElement {
7878
r00 += r41
7979

8080
*v = FieldElement{r00, r10, r20, r30, r40}
81-
return v.lightReduce1().lightReduce2()
81+
return v.carryPropagate1().carryPropagate2()
8282
}

0 commit comments

Comments
 (0)