shz_copysignf
SHZ_INLINE float shz_copysignf(float x, float y) SHZ_NOEXCEPT;Replacement for the <math.h> routine, copysignf().
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
x | float | |
y | float |
Returns
Section titled “Returns”float
Details
Section titled “Details”Returns the value of x with the sign of y.
Warnings
Section titled “Warnings”- When
y == -0.0f, a positive value is returned.
Availability
Section titled “Availability”- C++ equivalent:
shz::copysignf - Type-generic form: none
- Back-ends: SH4: shared C implementation · SW: portable C · SPU: shared C implementation
- Defined in:
sh4zam/shz_scalar.h:212 - Module: Scalar, section "Miscellaneous"