shz_saturatef
SHZ_INLINE float shz_saturatef(float x) SHZ_NOEXCEPT;Clamps x to the range [0.0f, 1.0f].
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
x | float |
Returns
Section titled “Returns”float
Availability
Section titled “Availability”- C++ equivalent:
shz::saturatef - Type-generic form: none
- Back-ends: SH4: shared C implementation · SW: portable C · SPU: shared C implementation
- Defined in:
sh4zam/shz_scalar.h:191 - Module: Scalar, section "Mapping"