---- Comparisons (IEEE 754-consistent) ---- NaN != NaN; +0 == -0.
| 93 | // ---- Comparisons (IEEE 754-consistent) ---- |
| 94 | // NaN != NaN; +0 == -0. |
| 95 | [[nodiscard]] static bool equal(const float16_t a, |
| 96 | const float16_t b) noexcept { |
| 97 | if (is_nan(a) || is_nan(b)) |
| 98 | return false; |
| 99 | if (is_zero(a) && is_zero(b)) |
| 100 | return true; |
| 101 | return a.bits == b.bits; |
| 102 | } |
| 103 | // Returns false if either operand is NaN (unordered). |
| 104 | [[nodiscard]] static bool less(const float16_t a, |
| 105 | const float16_t b) noexcept { |
no outgoing calls
no test coverage detected