aboutsummaryrefslogtreecommitdiff
path: root/lib/compiler_rt/trunctfhf2.zig
diff options
context:
space:
mode:
authorJacob Young <jacobly0@users.noreply.github.com>2023-03-27 21:32:37 -0400
committerAndrew Kelley <andrew@ziglang.org>2023-04-05 22:05:10 -0700
commit5870ffeb82e93ab2a35f9153668d170eced25cbc (patch)
tree58f3d0567f5aee38244f50934e3c70cf6d59b79f /lib/compiler_rt/trunctfhf2.zig
parent243848167b753692602609888763d47898ea4ce9 (diff)
downloadzig-5870ffeb82e93ab2a35f9153668d170eced25cbc.tar.gz
zig-5870ffeb82e93ab2a35f9153668d170eced25cbc.zip
compiler_rt: change the abi of f16 on mac to depend on the other type
Diffstat (limited to 'lib/compiler_rt/trunctfhf2.zig')
-rw-r--r--lib/compiler_rt/trunctfhf2.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/compiler_rt/trunctfhf2.zig b/lib/compiler_rt/trunctfhf2.zig
index e963753950..e9cc19da18 100644
--- a/lib/compiler_rt/trunctfhf2.zig
+++ b/lib/compiler_rt/trunctfhf2.zig
@@ -7,6 +7,6 @@ comptime {
@export(__trunctfhf2, .{ .name = "__trunctfhf2", .linkage = common.linkage, .visibility = common.visibility });
}
-pub fn __trunctfhf2(a: f128) callconv(.C) common.F16T {
- return @bitCast(common.F16T, truncf(f16, f128, a));
+pub fn __trunctfhf2(a: f128) callconv(.C) common.F16T(f128) {
+ return @bitCast(common.F16T(f128), truncf(f16, f128, a));
}