Skip to content

Commit

Permalink
internal/radix51: fix !amd64 build (lightReduce -> carryPropagate) (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
sunnya97 authored and FiloSottile committed Nov 26, 2019
1 parent af147e8 commit f334547
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/radix51/fe_mul.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,5 +104,5 @@ func (v *FieldElement) Mul(x, y *FieldElement) *FieldElement {
// finally from r_4 to r_0 . Each of these carries is done as one copy, one
// right shift by 51, one logical and with 2^51 − 1, and one addition.
*v = FieldElement{r00, r10, r20, r30, r40}
return v.lightReduce1().lightReduce2()
return v.carryPropagate1().carryPropagate2()
}
2 changes: 1 addition & 1 deletion internal/radix51/fe_square.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,5 +78,5 @@ func (v *FieldElement) Square(x *FieldElement) *FieldElement {
r00 += r41

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

0 comments on commit f334547

Please sign in to comment.