Skip to content

shz_signf

Markdown
SHZ_INLINE float shz_signf(float x) SHZ_NOEXCEPT;

Returns -1.0f if x < 0, 0.0f if x == 0, or 1.0f if x > 0.

NameTypeDescription
xfloat

float

  • C++ equivalent: shz::signf
  • Type-generic form: none
  • Back-ends: SH4: shared C implementation · SW: portable C · SPU: shared C implementation
  • Defined in: sh4zam/shz_scalar.h:188
  • Module: Scalar, section "Mapping"