const std = @import("../std.zig");
const math = std.math;
const expect = std.testing.expect;
const maxInt = std.math.maxInt;
pub fn isNan(x: anytype) bool {
    return x != x;
}
pub fn isSignalNan(x: anytype) bool {
    
    
    return isNan(x);
}
test "math.isNan" {
    try expect(isNan(math.nan(f16)));
    try expect(isNan(math.nan(f32)));
    try expect(isNan(math.nan(f64)));
    try expect(isNan(math.nan(f128)));
    try expect(!isNan(@as(f16, 1.0)));
    try expect(!isNan(@as(f32, 1.0)));
    try expect(!isNan(@as(f64, 1.0)));
    try expect(!isNan(@as(f128, 1.0)));
}