pow2_u256
Calculate 2 raised to the power of the given exponent using a pre-computed lookup table
Arguments
exponent
- The exponent to raise 2 to
Returns
u256
- The result of 2^exponent
Panics
- If
exponent
is greater than 255 (out of the supported range)
Fully qualified path: alexandria_math::const_pow::pow2_u256
#![allow(unused)] fn main() { pub fn pow2_u256(exponent: u32) -> u256 }