Skip to content

Commit

Permalink
compiler_rt: Export __truncdfhf2() for AEABI too.
Browse files Browse the repository at this point in the history
Similar to __truncsfhf2() and __extendhfsf2().
  • Loading branch information
alexrp committed Sep 6, 2024
1 parent f1851ca commit e523e36
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/compiler_rt/truncdfhf2.zig
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@ pub const panic = common.panic;
comptime {
if (common.want_aeabi) {
@export(&__aeabi_d2h, .{ .name = "__aeabi_d2h", .linkage = common.linkage, .visibility = common.visibility });
} else {
@export(&__truncdfhf2, .{ .name = "__truncdfhf2", .linkage = common.linkage, .visibility = common.visibility });
}
@export(&__truncdfhf2, .{ .name = "__truncdfhf2", .linkage = common.linkage, .visibility = common.visibility });
}

pub fn __truncdfhf2(a: f64) callconv(.C) common.F16T(f64) {
Expand Down

0 comments on commit e523e36

Please sign in to comment.