def F16.to_f32
import bendtorch@1.3.0.0/dtype.bend as Dtypeimport Base
117def F16.to_f32(+h: U32) -> F32:
118 +eu = (U32.shrn(h, 10n) .&. 31 : U32)
119 f16_up(U32.is_eq(eu, 0), U32.is_eq(eu, 31), (h .&. 1023 : U32), U32.shln((h .&. 32768 : U32), 16n), eu)