mirror of
https://github.com/logos-storage/plonky2.git
synced 2026-02-23 23:33:15 +00:00
added debug assert
This commit is contained in:
parent
34d59305a1
commit
b66ad6c96a
@ -22,9 +22,10 @@ pub(crate) struct ExponentiationGate<F: Extendable<D>, const D: usize> {
|
||||
}
|
||||
|
||||
impl<F: Extendable<D>, const D: usize> ExponentiationGate<F, D> {
|
||||
pub fn new(power_bits: usize) -> Self {
|
||||
pub fn new(num_power_bits: usize) -> Self {
|
||||
debug_assert!(num_power_bits < MAX_POWER_BITS);
|
||||
Self {
|
||||
num_power_bits: power_bits,
|
||||
num_power_bits,
|
||||
_phantom: PhantomData,
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user