Function rust_examples::rsqrt::rsqrt[][src]

pub fn rsqrt(number: f32) -> f32
Expand description

Approximates the inverse square root of given number.

Note that this a port of the original C implementation and as such it is generally unsafe. Calling this fuction with a negative f32, zero, nan or infinity will result in a panic (for these is the inverse square root undefined).