def f16_mag

bendtorch@1.3.0.0 · dtype.bend:88

import bendtorch@1.3.0.0/dtype.bend as Dtype
import Base

88def f16_mag(nan: Bool, normal: Bool, tiny: Bool, +a: U32) -> U32:
89  match nan normal tiny:
90    case True{} _ _:
91      f16_nan(a)
92    case False{} True{} _:
93      f16_normal(a)
94    case False{} False{} True{}:
95      0
96    case False{} False{} False{}:
97      f16_sub(a)

Uses (5)

Used by (1)