| 207 | } |
| 208 | |
| 209 | npy_uint16 npy_doublebits_to_halfbits(npy_uint64 d) |
| 210 | { |
| 211 | if constexpr (Half::kNativeConversion<double>) { |
| 212 | return BitCast<uint16_t>(Half(BitCast<double>(d))); |
| 213 | } |
| 214 | else { |
| 215 | return half_private::FromDoubleBits(d); |
| 216 | } |
| 217 | } |
| 218 | |
| 219 | npy_uint32 npy_halfbits_to_floatbits(npy_uint16 h) |
| 220 | { |
nothing calls this directly
no test coverage detected