pub inline fn isPositiveZero(x: anytype) bool x6
7
8
9
10
11pub inline fn isPositiveZero(x: anytype) bool {
const T = @TypeOf(x);
const bit_count = @typeInfo(T).float.bits;
const TBits = @Int(.unsigned, bit_count);
return @as(TBits, @bitCast(x)) == @as(TBits, 0);
}