Skip to content

Commit 0d47bcd

Browse files
replace manual doubling with double() (https://github.com/Plonky3/Plonky3/pull/1371/changes#top)
Co-authored-by: Nina <152422240+ninastef@users.noreply.github.com>
1 parent bb29bb4 commit 0d47bcd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

crates/backend/koala-bear/src/poseidon2/external.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ where
3838
{
3939
let t0 = x[0] + x[1];
4040
let t1 = x[2] + x[3];
41-
let t2 = x[1] + x[1] + t1;
42-
let t3 = x[3] + x[3] + t0;
41+
let t2 = x[1].double() + t1;
42+
let t3 = x[3].double() + t0;
4343
let t4 = t1.double().double() + t3;
4444
let t5 = t0.double().double() + t2;
4545
let t6 = t3 + t5;

0 commit comments

Comments
 (0)