use math/float.zig everywhere

This commit is contained in:
viri
2022-04-06 20:49:05 -06:00
parent 5d6a5a1236
commit e46c612503
26 changed files with 177 additions and 173 deletions

View File

@@ -15,10 +15,10 @@ fn test_fmodl_nans() !void {
}
fn test_fmodl_infs() !void {
try testing.expect(fmodl.fmodl(1.0, std.math.inf_f128) == 1.0);
try testing.expect(fmodl.fmodl(1.0, -std.math.inf_f128) == 1.0);
try testing.expect(std.math.isNan(fmodl.fmodl(std.math.inf_f128, 1.0)));
try testing.expect(std.math.isNan(fmodl.fmodl(-std.math.inf_f128, 1.0)));
try testing.expect(fmodl.fmodl(1.0, std.math.inf(f128)) == 1.0);
try testing.expect(fmodl.fmodl(1.0, -std.math.inf(f128)) == 1.0);
try testing.expect(std.math.isNan(fmodl.fmodl(std.math.inf(f128), 1.0)));
try testing.expect(std.math.isNan(fmodl.fmodl(-std.math.inf(f128), 1.0)));
}
test "fmodl" {