Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

lut

Lookup Tables (f64)

Precomputed lookup tables for fast 32.32 fixed-point operations. Uses binary search through hardcoded values for gas efficiency.

Functions

  • msb - Most significant bit position and power of 2
  • exp2 - Powers of 2 for exponents 0-32
  • sin - Sine interpolation data
  • atan - Arctangent interpolation data

Fully qualified path: cairo_fp::f64::math::lut

Free functions

msbCalculates the most significant bit position. Returns (bit_position, 2^bit_position) for the input value.
exp2
sin
atan