# Prints V.f16(h) for every 16-bit h, one a line; check_f16_all.py compares them with NumPy's float16 -> float32. import Base import ../widen.bend as V @unsafe def go(done: Bool, +h: U32) -> IO(Unit): match done: case True{}: IO.pure(Unit, Unit{}) case False{}: do IO: IO.print(U32.show(V.f16(h))) go(U32.is_eq(h, 65535), (h + 1 : U32)) @unsafe def main() -> IO(Unit): go(False{}, 0)