mirror of
https://github.com/logos-storage/plonky2.git
synced 2026-04-14 15:43:53 +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 {
|
fn combine_u256s(hi: U256, lo: U256) -> U512 {
|
||||||
let mut result = U512::from(hi);
|
U512::from(lo) + (U512::from(hi) << 256)
|
||||||
result <<= 256;
|
|
||||||
result += U512::from(lo);
|
|
||||||
result
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fn prepare_test<T>(
|
fn prepare_test<T>(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user