2022-06-16 07:09:56 +01:00
|
|
|
const common = @import("./common.zig");
|
|
|
|
const extendf = @import("./extendf.zig").extendf;
|
|
|
|
|
|
|
|
pub const panic = common.panic;
|
|
|
|
|
|
|
|
comptime {
|
|
|
|
if (common.want_aeabi) {
|
2022-12-28 13:57:17 +00:00
|
|
|
@export(__aeabi_f2d, .{ .name = "__aeabi_f2d", .linkage = common.linkage, .visibility = common.visibility });
|
2022-06-16 07:09:56 +01:00
|
|
|
} else {
|
2022-12-28 13:57:17 +00:00
|
|
|
@export(__extendsfdf2, .{ .name = "__extendsfdf2", .linkage = common.linkage, .visibility = common.visibility });
|
2022-06-16 07:09:56 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn __extendsfdf2(a: f32) callconv(.C) f64 {
|
2023-06-22 18:46:56 +01:00
|
|
|
return extendf(f64, f32, @as(u32, @bitCast(a)));
|
2022-06-16 07:09:56 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
fn __aeabi_f2d(a: f32) callconv(.AAPCS) f64 {
|
2023-06-22 18:46:56 +01:00
|
|
|
return extendf(f64, f32, @as(u32, @bitCast(a)));
|
2022-06-16 07:09:56 +01:00
|
|
|
}
|