inline fn bitWidth(x: anytype) u16 x13
14
15
16
17
18
19 inline fn bitWidth(x: anytype) u16 {
const T = @TypeOf(x);
return switch (T) {
f80, f128, c_longdouble => @typeInfo(T).float.bits,
else => @compileError("Unsupported type: " ++ @typeName(T) ++ "\nPass a `f80`, `f128`, or `c_longdouble`."),
};
}