Skip to content

shz_sqrtf_fsrra_safe

Markdown
SHZ_INLINE float shz_sqrtf_fsrra_safe(float x) SHZ_NOEXCEPT;

Returns the fast approximate square root of the given value, x, using FSRRA, safely returning 0.0f if x == 0.0f.

NameTypeDescription
xfloat

float

  • _safe: Guards degenerate input (zero-length vectors, zero denominators) at a small cost. (Naming and Suffixes)