MCPcopy Create free account
hub / github.com/numpy/numpy / npy_halfbits_to_floatbits

Function npy_halfbits_to_floatbits

numpy/core/src/npymath/halffloat.cpp:219–227  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

217}
218
219npy_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
229npy_uint64 npy_halfbits_to_doublebits(npy_uint16 h)
230{

Callers

nothing calls this directly

Calls 1

ToFloatBitsFunction · 0.85

Tested by

no test coverage detected