mirror of
https://github.com/ziglang/zig.git
synced 2024-11-27 23:52:31 +00:00
0d533433e2
This change also exposes some of the existing functions under both the PPC-style names symbols and the compiler-rt-style names, since Zig currently lowers softfloat calls to the latter.
12 lines
315 B
Zig
12 lines
315 B
Zig
const common = @import("common.zig");
|
|
const divsf3 = @import("./divsf3.zig");
|
|
|
|
comptime {
|
|
@export(__divhf3, .{ .name = "__divhf3", .linkage = common.linkage });
|
|
}
|
|
|
|
pub fn __divhf3(a: f16, b: f16) callconv(.C) f16 {
|
|
// TODO: more efficient implementation
|
|
return @floatCast(f16, divsf3.__divsf3(a, b));
|
|
}
|