exp2_int
Fast 2^x for integer exponents.
Uses a lookup table for O(1) computation.
Gas Cost
~17,500 (f128) - ~10x faster than exp2
Fully qualified path: cairo_fp::f128::math::ops::exp2_int
fn exp2_int(exp: u128) -> Fixed
Press ← or → to navigate between chapters
Press ? to show this help
Press Esc to hide this help