Skip to content

Commit 3a5b100

Browse files
committed
Use squaring instead of multiplication where appropriate
1 parent 5a5c671 commit 3a5b100

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ed448-goldilocks/src/field/element.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ impl FieldElement {
335335
l0 = l2 * l1;
336336
l2 = l0.square_n::<9>();
337337
l1 = l0 * l2;
338-
l0 = l1 * l1;
338+
l0 = l1.square();
339339
l2 = l0 * self;
340340
l0 = l2.square_n::<18>();
341341
l2 = l1 * l0;

0 commit comments

Comments
 (0)