True if the value is finite (not Inf and not NaN).
| 87 | |
| 88 | // True if the value is finite (not Inf and not NaN). |
| 89 | [[nodiscard]] static bool is_finite(float16_t h) noexcept { |
| 90 | return (h.bits & 0x7C00u) != 0x7C00u; |
| 91 | } |
| 92 | |
| 93 | // ---- Comparisons (IEEE 754-consistent) ---- |
| 94 | // NaN != NaN; +0 == -0. |
no outgoing calls
no test coverage detected