zig

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

negdf2.zig (530B) - Raw


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