Expand description
Math helper functions.
Traits§
- Fast
InvSqrt - Implement the fast approximate computation of ‘1/sqrt(x)’ for a type.
Functions§
- fast_
invsqrt_ 32 - Fast approximate computation of 1/sqrt(x). The error should be below 0.2%.
- fast_
invsqrt_ 64 - Fast approximate computation of 1/sqrt(x). The error should be below 0.2%.
- int_
sqrt_ floor - Compute square root of integers using Newtons method.
Returns the biggest integer which is smaller or equal to the actual square root of
n. Similar to(i as f64).sqrt().floor() as Tbut without type conversions.