aboutsummaryrefslogtreecommitdiff
path: root/lib/compiler_rt/multf3.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2022-06-16 14:18:08 -0700
committerAndrew Kelley <andrew@ziglang.org>2022-06-17 16:38:59 -0700
commit25671f5a973c209bdf75f8be567cc5e441a865cb (patch)
tree0f34046f069cb51058fcb9643774973e36d1ceb3 /lib/compiler_rt/multf3.zig
parentc99c085d70c9347ec9a15d9a4f73c19e628912b7 (diff)
downloadzig-25671f5a973c209bdf75f8be567cc5e441a865cb.tar.gz
zig-25671f5a973c209bdf75f8be567cc5e441a865cb.zip
compiler-rt: move SPARC functions into appropriate compilation units
Diffstat (limited to 'lib/compiler_rt/multf3.zig')
-rw-r--r--lib/compiler_rt/multf3.zig6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/compiler_rt/multf3.zig b/lib/compiler_rt/multf3.zig
index f71867c9ca..b18f5912a5 100644
--- a/lib/compiler_rt/multf3.zig
+++ b/lib/compiler_rt/multf3.zig
@@ -6,6 +6,8 @@ pub const panic = common.panic;
comptime {
if (common.want_ppc_abi) {
@export(__mulkf3, .{ .name = "__mulkf3", .linkage = common.linkage });
+ } else if (common.want_sparc_abi) {
+ @export(_Qp_mul, .{ .name = "_Qp_mul", .linkage = common.linkage });
} else {
@export(__multf3, .{ .name = "__multf3", .linkage = common.linkage });
}
@@ -18,3 +20,7 @@ fn __multf3(a: f128, b: f128) callconv(.C) f128 {
fn __mulkf3(a: f128, b: f128) callconv(.C) f128 {
return mulf3(f128, a, b);
}
+
+fn _Qp_mul(c: *f128, a: *const f128, b: *const f128) callconv(.C) void {
+ c.* = mulf3(f128, a.*, b.*);
+}