Skip to main content

fast_sqrt

Function fast_sqrt 

Source
pub fn fast_sqrt(val: u32) -> u32
Expand description

Fast integer square root using lookup tables. No divisions, multiplications, or loops — just bit shifts and table lookups. Port of C++ fast_sqrt (portable C path).