shz_pow2f
SHZ_INLINE float shz_pow2f(float p) SHZ_NOEXCEPT;Fast approximation for raising 2 to a floating-point power.
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
p | float |
Returns
Section titled “Returns”float
- Measured maximum relative error: 5.7% over the full domain.
pis clamped to [-126.0f, 128.0f] before evaluation.
Availability
Section titled “Availability”- C++ equivalent:
shz::pow2f - Type-generic form: none
- Back-ends: SH4: shared C implementation · SW: portable C · SPU: shared C implementation
- Defined in:
sh4zam/shz_scalar.h:396 - Module: Scalar, section "Transcendental"