shz_sqrtf_fsrra_safe
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.
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
x | float |
Returns
Section titled “Returns”float
Naming and requirements
Section titled “Naming and requirements”_safe: Guards degenerate input (zero-length vectors, zero denominators) at a small cost. (Naming and Suffixes)
Availability
Section titled “Availability”- C++ equivalent:
shz::sqrtf_fsrra_safe - Type-generic form: none
- Back-ends: SH4: shared C implementation · SW: portable C · SPU: shared C implementation
- Defined in:
sh4zam/shz_scalar.h:278 - Module: Scalar, section "FSRRA"