shz_inv_sqrtf
SHZ_INLINE float shz_inv_sqrtf(float x) SHZ_NOEXCEPT;Calculates 1.0f/sqrtf( x ), using a fast approximation, while safely protecting against division-by-zero.
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
x | float |
Returns
Section titled “Returns”float
Availability
Section titled “Availability”- C++ equivalent:
shz::inv_sqrtf - Type-generic form: none
- Back-ends: SH4: shared C implementation · SW: portable C · SPU: shared C implementation
- Defined in:
sh4zam/shz_scalar.h:280 - Module: Scalar, section "FSRRA"