shz_wrapf_fsrra
SHZ_INLINE float shz_wrapf_fsrra(float value, float min, float max) SHZ_NOEXCEPT;Wraps the given value back to be within the range of min to max more quickly, provided max - min is a positive difference.
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
value | float | |
min | float | |
max | float |
Returns
Section titled “Returns”float
Naming and requirements
Section titled “Naming and requirements”_fsrra: UsesFSRRA(fast approximate 1/sqrt(x)). The argument or denominator must be positive. Faster, less precise. (Naming and Suffixes)
Availability
Section titled “Availability”- C++ equivalent:
shz::wrapf_fsrra - Type-generic form: none
- Back-ends: SH4: shared C implementation · SW: portable C · SPU: shared C implementation
- Defined in:
sh4zam/shz_scalar.h:182 - Module: Scalar, section "Mapping"