Commit 65058ebd72

Andrew Kelley <andrew@ziglang.org>
2022-03-20 21:29:48
freestanding libc: remove ceil functions
Now that they are in compiler-rt, they can be removed from here.
1 parent b7f4045
Changed files (1)
lib
std
special
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);
 }