Skip to content

shz_opaquef

Markdown
SHZ_INLINE float shz_opaquef(float value) SHZ_NOEXCEPT;

Returns value unchanged, hidden from the optimizer.

NameTypeDescription
valuefloat

float

Emits no instructions, but prevents the compiler from reassociating across value or substituting it with a known equivalent, which can be used to influence instruction scheduling.

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