master
1const common = @import("./common.zig");
2const truncf = @import("./truncf.zig").truncf;
3
4pub const panic = common.panic;
5
6comptime {
7 if (common.want_aeabi) {
8 @export(&__aeabi_d2f, .{ .name = "__aeabi_d2f", .linkage = common.linkage, .visibility = common.visibility });
9 } else {
10 @export(&__truncdfsf2, .{ .name = "__truncdfsf2", .linkage = common.linkage, .visibility = common.visibility });
11 }
12}
13
14pub fn __truncdfsf2(a: f64) callconv(.c) f32 {
15 return truncf(f32, f64, a);
16}
17
18fn __aeabi_d2f(a: f64) callconv(.{ .arm_aapcs = .{} }) f32 {
19 return truncf(f32, f64, a);
20}