Function cairo_vm::math_utils::pow2_const
source ยท pub fn pow2_const(n: u32) -> Felt252
Expand description
Returns the n
th (up to the 251
th power) power of 2 as a Felt252
in constant time.
It silently returns 1
if the input is out of bounds.