| 142 | // ---- Arithmetic (computed in float32, rounded back to float16) ---- |
| 143 | |
| 144 | [[nodiscard]] static float16_t add(float16_t a, float16_t b) noexcept { |
| 145 | return from_float(a.to_float() + b.to_float()); |
| 146 | } |
| 147 | [[nodiscard]] static float16_t sub(float16_t a, float16_t b) noexcept { |
| 148 | return from_float(a.to_float() - b.to_float()); |
| 149 | } |