zig

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

truncdfsf2.zig (600B) - Raw


      1 const common = @import("./common.zig");
      2 const truncf = @import("./truncf.zig").truncf;
      3 
      4 pub const panic = common.panic;
      5 
      6 comptime {
      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 
     14 pub fn __truncdfsf2(a: f64) callconv(.c) f32 {
     15     return truncf(f32, f64, a);
     16 }
     17 
     18 fn __aeabi_d2f(a: f64) callconv(.{ .arm_aapcs = .{} }) f32 {
     19     return truncf(f32, f64, a);
     20 }