| 217 | } |
| 218 | |
| 219 | npy_uint32 npy_halfbits_to_floatbits(npy_uint16 h) |
| 220 | { |
| 221 | if constexpr (Half::kNativeConversion<float>) { |
| 222 | return BitCast<uint32_t>(static_cast<float>(Half::FromBits(h))); |
| 223 | } |
| 224 | else { |
| 225 | return half_private::ToFloatBits(h); |
| 226 | } |
| 227 | } |
| 228 | |
| 229 | npy_uint64 npy_halfbits_to_doublebits(npy_uint16 h) |
| 230 | { |
nothing calls this directly
no test coverage detected