| 197 | */ |
| 198 | |
| 199 | npy_uint16 npy_floatbits_to_halfbits(npy_uint32 f) |
| 200 | { |
| 201 | if constexpr (Half::kNativeConversion<float>) { |
| 202 | return BitCast<uint16_t>(Half(BitCast<float>(f))); |
| 203 | } |
| 204 | else { |
| 205 | return half_private::FromFloatBits(f); |
| 206 | } |
| 207 | } |
| 208 | |
| 209 | npy_uint16 npy_doublebits_to_halfbits(npy_uint64 d) |
| 210 | { |
nothing calls this directly
no test coverage detected