blob: 37b9227e0b975d610ce86d8b7e9de6f47231bcb1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
const common = @import("./common.zig");
const truncf = @import("./truncf.zig").truncf;
pub const panic = common.panic;
comptime {
if (common.want_ppc_abi) {
@export(&__trunctfdf2, .{ .name = "__trunckfdf2", .linkage = common.linkage, .visibility = common.visibility });
} else if (common.want_sparc_abi) {
@export(&_Qp_qtod, .{ .name = "_Qp_qtod", .linkage = common.linkage, .visibility = common.visibility });
}
@export(&__trunctfdf2, .{ .name = "__trunctfdf2", .linkage = common.linkage, .visibility = common.visibility });
}
pub fn __trunctfdf2(a: f128) callconv(.c) f64 {
return truncf(f64, f128, a);
}
fn _Qp_qtod(a: *const f128) callconv(.c) f64 {
return truncf(f64, f128, a.*);
}
|