fn isFastPath(comptime T: type, n: Number(T)) bool
T: type
n: Number(T)
18 19 20 21 22 23 24 25
fn isFastPath(comptime T: type, n: Number(T)) bool { const info = FloatInfo.from(T); return info.min_exponent_fast_path <= n.exponent and n.exponent <= info.max_exponent_fast_path_disguised and n.mantissa <= info.max_mantissa_fast_path and !n.many_digits; }