pub inline fn isNegativeZero(x: anytype) bool x14
15
16
17
18
19pub inline fn isNegativeZero(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, 1) << (bit_count - 1);
}