diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2022-03-20 13:29:48 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2022-03-20 13:29:48 -0700 |
| commit | 65058ebd72d06ee5f920df3e2c3e68dd77f5fccf (patch) | |
| tree | a61d2b1d13480732fbc4d92480f7abc5cbeef2c2 /lib/std/special/c.zig | |
| parent | b7f40451844caa81f8ecb233c68777f06232d94c (diff) | |
| download | zig-65058ebd72d06ee5f920df3e2c3e68dd77f5fccf.tar.gz zig-65058ebd72d06ee5f920df3e2c3e68dd77f5fccf.zip | |
freestanding libc: remove ceil functions
Now that they are in compiler-rt, they can be removed from here.
Diffstat (limited to 'lib/std/special/c.zig')
| -rw-r--r-- | lib/std/special/c.zig | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/lib/std/special/c.zig b/lib/std/special/c.zig index 326ca3a8a0..d0639463a0 100644 --- a/lib/std/special/c.zig +++ b/lib/std/special/c.zig @@ -83,10 +83,6 @@ comptime { @export(log10, .{ .name = "log10", .linkage = .Strong }); @export(log10f, .{ .name = "log10f", .linkage = .Strong }); - @export(ceil, .{ .name = "ceil", .linkage = .Strong }); - @export(ceilf, .{ .name = "ceilf", .linkage = .Strong }); - @export(ceill, .{ .name = "ceill", .linkage = .Strong }); - @export(fmod, .{ .name = "fmod", .linkage = .Strong }); @export(fmodf, .{ .name = "fmodf", .linkage = .Strong }); @@ -429,21 +425,6 @@ fn log10f(a: f32) callconv(.C) f32 { return math.log10(a); } -fn ceilf(x: f32) callconv(.C) f32 { - return math.ceil(x); -} - -fn ceil(x: f64) callconv(.C) f64 { - return math.ceil(x); -} - -fn ceill(x: c_longdouble) callconv(.C) c_longdouble { - if (!long_double_is_f128) { - @panic("TODO implement this"); - } - return math.ceil(x); -} - fn fmodf(x: f32, y: f32) callconv(.C) f32 { return generic_fmod(f32, x, y); } |
