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