zig

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

negsf2.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_fneg, .{ .name = "__aeabi_fneg", .linkage = common.linkage, .visibility = common.visibility });
      8     } else {
      9         @export(&__negsf2, .{ .name = "__negsf2", .linkage = common.linkage, .visibility = common.visibility });
     10     }
     11 }
     12 
     13 fn __negsf2(a: f32) callconv(.c) f32 {
     14     return common.fneg(a);
     15 }
     16 
     17 fn __aeabi_fneg(a: f32) callconv(.{ .arm_aapcs = .{} }) f32 {
     18     return common.fneg(a);
     19 }