pub fn inf(comptime FloatT: type) Self FloatT: type25
26
27
28
29
30
31 pub fn inf(comptime FloatT: type) Self {
const e = (1 << std.math.floatExponentBits(FloatT)) - 1;
return switch (FloatT) {
f80 => .{ .f = 0x8000000000000000, .e = e },
else => .{ .f = 0, .e = e },
};
}