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