mirror of
https://github.com/ziglang/zig.git
synced 2026-01-21 14:55:25 +00:00
freestanding libc: remove ceil functions
Now that they are in compiler-rt, they can be removed from here.
This commit is contained in:
parent
b7f4045184
commit
65058ebd72
@ -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);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user