mirror of
https://github.com/logos-storage/plonky2.git
synced 2026-01-03 14:23:07 +00:00
cleaner arithmetic
This commit is contained in:
parent
731c29c43b
commit
abc762f7b4
@ -57,10 +57,7 @@ fn make_interpreter_setup(
|
||||
}
|
||||
|
||||
fn combine_u256s(hi: U256, lo: U256) -> U512 {
|
||||
let mut result = U512::from(hi);
|
||||
result <<= 256;
|
||||
result += U512::from(lo);
|
||||
result
|
||||
U512::from(lo) + (U512::from(hi) << 256)
|
||||
}
|
||||
|
||||
fn prepare_test<T>(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user