zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

floatunsidf.zig (628B) - Raw


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