zig

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

mulsf3.zig (598B) - Raw


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