mirror of
https://github.com/logos-storage/plonky2.git
synced 2026-01-04 14:53:08 +00:00
fixed max_power_bits
This commit is contained in:
parent
68672c0038
commit
607d0a89cb
@ -28,7 +28,9 @@ impl<F: Extendable<D>, const D: usize> ExponentiationGate<F, D> {
|
||||
}
|
||||
|
||||
pub fn max_power_bits(num_wires: usize, num_routed_wires: usize) -> usize {
|
||||
num_wires / num_routed_wires
|
||||
let max_for_routed_wires = num_routed_wires - 3;
|
||||
let max_for_wires = (num_wires - 2) / 2;
|
||||
max_for_routed_wires.min(max_for_wires)
|
||||
}
|
||||
|
||||
pub fn wire_base(&self) -> usize {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user