Helper: convert two float16 bit patterns through an operation and return bits.
| 729 | // Helper: convert two float16 bit patterns through an operation and return |
| 730 | // bits. |
| 731 | static uint16_t add_bits(uint16_t a, uint16_t b) { |
| 732 | return float16_t::add(H(a), H(b)).to_bits(); |
| 733 | } |
| 734 | static uint16_t sub_bits(uint16_t a, uint16_t b) { |
| 735 | return float16_t::sub(H(a), H(b)).to_bits(); |
| 736 | } |