| 227 | } |
| 228 | |
| 229 | npy_uint64 npy_halfbits_to_doublebits(npy_uint16 h) |
| 230 | { |
| 231 | if constexpr (Half::kNativeConversion<double>) { |
| 232 | return BitCast<uint64_t>(static_cast<double>(Half::FromBits(h))); |
| 233 | } |
| 234 | else { |
| 235 | return half_private::ToDoubleBits(h); |
| 236 | } |
| 237 | } |
| 238 |
nothing calls this directly
no test coverage detected