| 158 | |
| 159 | // Comparison helpers that assume neither operand is NaN |
| 160 | static constexpr bool CompareEq(Float16 lhs, Float16 rhs) { |
| 161 | return (lhs.bits() == rhs.bits()) || (lhs.is_zero() && rhs.is_zero()); |
| 162 | } |
| 163 | static constexpr bool CompareLt(Float16 lhs, Float16 rhs) { |
| 164 | if (lhs.signbit()) { |
| 165 | if (rhs.signbit()) { |