9#ifndef SBL_MATH_FINITE_HPP_
10#define SBL_MATH_FINITE_HPP_
A float's magnitude as its bit pattern, for compares without the FPU.
Domain-neutral math: constants, clamp, interpolation.
constexpr uint32_t FLOAT_EXPONENT_BITS
A single's exponent field: all ones in infinities and NaNs.
float finite_or(float x, float fallback)
x, or fallback when x is an infinity or a NaN.
bool is_finite(float x)
std::isfinite, read from the exponent's bits.
uint32_t magnitude_bits(float x)
x's bits with the sign cleared.