pub fn pow2_const_nz(n: u32) -> &'static NonZeroFelt
Expand description
Returns the n
th (up to the 251
th power) power of 2 as a [&stark_felt::NonZeroFelt
]
in constant time.
It silently returns 1
if the input is out of bounds.
pub fn pow2_const_nz(n: u32) -> &'static NonZeroFelt
Returns the n
th (up to the 251
th power) power of 2 as a [&stark_felt::NonZeroFelt
]
in constant time.
It silently returns 1
if the input is out of bounds.