mirror of
https://github.com/ziglang/zig.git
synced 2024-12-23 19:40:18 +00:00
compiler-rt: Set the symbol visibility
When we're compiling compiler_rt for any WebAssembly target, we do not want to expose all the compiler-rt functions to the host runtime. By setting the visibility of all exports to `hidden`, we allow the linker to resolve the symbols during linktime, while not expose the functions to the host runtime. This also means the linker can properly garbage collect any compiler-rt function that does not get resolved. The symbol visibility for all target remains the same as before: `default`.
This commit is contained in:
parent
4aab8118a7
commit
30f2bb8464
@ -4,7 +4,7 @@ const absv = @import("./absv.zig").absv;
|
||||
pub const panic = common.panic;
|
||||
|
||||
comptime {
|
||||
@export(__absvdi2, .{ .name = "__absvdi2", .linkage = common.linkage });
|
||||
@export(__absvdi2, .{ .name = "__absvdi2", .linkage = common.linkage, .visibility = common.visibility });
|
||||
}
|
||||
|
||||
pub fn __absvdi2(a: i64) callconv(.C) i64 {
|
||||
|
@ -4,7 +4,7 @@ const absv = @import("./absv.zig").absv;
|
||||
pub const panic = common.panic;
|
||||
|
||||
comptime {
|
||||
@export(__absvsi2, .{ .name = "__absvsi2", .linkage = common.linkage });
|
||||
@export(__absvsi2, .{ .name = "__absvsi2", .linkage = common.linkage, .visibility = common.visibility });
|
||||
}
|
||||
|
||||
pub fn __absvsi2(a: i32) callconv(.C) i32 {
|
||||
|
@ -4,7 +4,7 @@ const absv = @import("./absv.zig").absv;
|
||||
pub const panic = common.panic;
|
||||
|
||||
comptime {
|
||||
@export(__absvti2, .{ .name = "__absvti2", .linkage = common.linkage });
|
||||
@export(__absvti2, .{ .name = "__absvti2", .linkage = common.linkage, .visibility = common.visibility });
|
||||
}
|
||||
|
||||
pub fn __absvti2(a: i128) callconv(.C) i128 {
|
||||
|
@ -5,9 +5,9 @@ pub const panic = common.panic;
|
||||
|
||||
comptime {
|
||||
if (common.want_aeabi) {
|
||||
@export(__aeabi_dadd, .{ .name = "__aeabi_dadd", .linkage = common.linkage });
|
||||
@export(__aeabi_dadd, .{ .name = "__aeabi_dadd", .linkage = common.linkage, .visibility = common.visibility });
|
||||
} else {
|
||||
@export(__adddf3, .{ .name = "__adddf3", .linkage = common.linkage });
|
||||
@export(__adddf3, .{ .name = "__adddf3", .linkage = common.linkage, .visibility = common.visibility });
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -4,7 +4,7 @@ const addf3 = @import("./addf3.zig").addf3;
|
||||
pub const panic = common.panic;
|
||||
|
||||
comptime {
|
||||
@export(__addhf3, .{ .name = "__addhf3", .linkage = common.linkage });
|
||||
@export(__addhf3, .{ .name = "__addhf3", .linkage = common.linkage, .visibility = common.visibility });
|
||||
}
|
||||
|
||||
fn __addhf3(a: f16, b: f16) callconv(.C) f16 {
|
||||
|
@ -1,13 +1,13 @@
|
||||
const std = @import("std");
|
||||
const builtin = @import("builtin");
|
||||
const is_test = builtin.is_test;
|
||||
const linkage: std.builtin.GlobalLinkage = if (builtin.is_test) .Internal else .Weak;
|
||||
const common = @import("./common.zig");
|
||||
pub const panic = @import("common.zig").panic;
|
||||
|
||||
comptime {
|
||||
@export(__addosi4, .{ .name = "__addosi4", .linkage = linkage });
|
||||
@export(__addodi4, .{ .name = "__addodi4", .linkage = linkage });
|
||||
@export(__addoti4, .{ .name = "__addoti4", .linkage = linkage });
|
||||
@export(__addosi4, .{ .name = "__addosi4", .linkage = common.linkage, .visibility = common.visibility });
|
||||
@export(__addodi4, .{ .name = "__addodi4", .linkage = common.linkage, .visibility = common.visibility });
|
||||
@export(__addoti4, .{ .name = "__addoti4", .linkage = common.linkage, .visibility = common.visibility });
|
||||
}
|
||||
|
||||
// addo - add overflow
|
||||
|
@ -5,9 +5,9 @@ pub const panic = common.panic;
|
||||
|
||||
comptime {
|
||||
if (common.want_aeabi) {
|
||||
@export(__aeabi_fadd, .{ .name = "__aeabi_fadd", .linkage = common.linkage });
|
||||
@export(__aeabi_fadd, .{ .name = "__aeabi_fadd", .linkage = common.linkage, .visibility = common.visibility });
|
||||
} else {
|
||||
@export(__addsf3, .{ .name = "__addsf3", .linkage = common.linkage });
|
||||
@export(__addsf3, .{ .name = "__addsf3", .linkage = common.linkage, .visibility = common.visibility });
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -5,11 +5,11 @@ pub const panic = common.panic;
|
||||
|
||||
comptime {
|
||||
if (common.want_ppc_abi) {
|
||||
@export(__addtf3, .{ .name = "__addkf3", .linkage = common.linkage });
|
||||
@export(__addtf3, .{ .name = "__addkf3", .linkage = common.linkage, .visibility = common.visibility });
|
||||
} else if (common.want_sparc_abi) {
|
||||
@export(_Qp_add, .{ .name = "_Qp_add", .linkage = common.linkage });
|
||||
@export(_Qp_add, .{ .name = "_Qp_add", .linkage = common.linkage, .visibility = common.visibility });
|
||||
}
|
||||
@export(__addtf3, .{ .name = "__addtf3", .linkage = common.linkage });
|
||||
@export(__addtf3, .{ .name = "__addtf3", .linkage = common.linkage, .visibility = common.visibility });
|
||||
}
|
||||
|
||||
pub fn __addtf3(a: f128, b: f128) callconv(.C) f128 {
|
||||
|
@ -4,7 +4,7 @@ const addf3 = @import("./addf3.zig").addf3;
|
||||
pub const panic = common.panic;
|
||||
|
||||
comptime {
|
||||
@export(__addxf3, .{ .name = "__addxf3", .linkage = common.linkage });
|
||||
@export(__addxf3, .{ .name = "__addxf3", .linkage = common.linkage, .visibility = common.visibility });
|
||||
}
|
||||
|
||||
pub fn __addxf3(a: f80, b: f80) callconv(.C) f80 {
|
||||
|
@ -9,34 +9,34 @@ pub const panic = common.panic;
|
||||
comptime {
|
||||
if (!builtin.is_test) {
|
||||
if (arch.isARM() or arch.isThumb()) {
|
||||
@export(__aeabi_unwind_cpp_pr0, .{ .name = "__aeabi_unwind_cpp_pr0", .linkage = common.linkage });
|
||||
@export(__aeabi_unwind_cpp_pr1, .{ .name = "__aeabi_unwind_cpp_pr1", .linkage = common.linkage });
|
||||
@export(__aeabi_unwind_cpp_pr2, .{ .name = "__aeabi_unwind_cpp_pr2", .linkage = common.linkage });
|
||||
@export(__aeabi_unwind_cpp_pr0, .{ .name = "__aeabi_unwind_cpp_pr0", .linkage = common.linkage, .visibility = common.visibility });
|
||||
@export(__aeabi_unwind_cpp_pr1, .{ .name = "__aeabi_unwind_cpp_pr1", .linkage = common.linkage, .visibility = common.visibility });
|
||||
@export(__aeabi_unwind_cpp_pr2, .{ .name = "__aeabi_unwind_cpp_pr2", .linkage = common.linkage, .visibility = common.visibility });
|
||||
|
||||
@export(__aeabi_ldivmod, .{ .name = "__aeabi_ldivmod", .linkage = common.linkage });
|
||||
@export(__aeabi_uldivmod, .{ .name = "__aeabi_uldivmod", .linkage = common.linkage });
|
||||
@export(__aeabi_ldivmod, .{ .name = "__aeabi_ldivmod", .linkage = common.linkage, .visibility = common.visibility });
|
||||
@export(__aeabi_uldivmod, .{ .name = "__aeabi_uldivmod", .linkage = common.linkage, .visibility = common.visibility });
|
||||
|
||||
@export(__aeabi_idivmod, .{ .name = "__aeabi_idivmod", .linkage = common.linkage });
|
||||
@export(__aeabi_uidivmod, .{ .name = "__aeabi_uidivmod", .linkage = common.linkage });
|
||||
@export(__aeabi_idivmod, .{ .name = "__aeabi_idivmod", .linkage = common.linkage, .visibility = common.visibility });
|
||||
@export(__aeabi_uidivmod, .{ .name = "__aeabi_uidivmod", .linkage = common.linkage, .visibility = common.visibility });
|
||||
|
||||
@export(__aeabi_memcpy, .{ .name = "__aeabi_memcpy", .linkage = common.linkage });
|
||||
@export(__aeabi_memcpy4, .{ .name = "__aeabi_memcpy4", .linkage = common.linkage });
|
||||
@export(__aeabi_memcpy8, .{ .name = "__aeabi_memcpy8", .linkage = common.linkage });
|
||||
@export(__aeabi_memcpy, .{ .name = "__aeabi_memcpy", .linkage = common.linkage, .visibility = common.visibility });
|
||||
@export(__aeabi_memcpy4, .{ .name = "__aeabi_memcpy4", .linkage = common.linkage, .visibility = common.visibility });
|
||||
@export(__aeabi_memcpy8, .{ .name = "__aeabi_memcpy8", .linkage = common.linkage, .visibility = common.visibility });
|
||||
|
||||
@export(__aeabi_memmove, .{ .name = "__aeabi_memmove", .linkage = common.linkage });
|
||||
@export(__aeabi_memmove4, .{ .name = "__aeabi_memmove4", .linkage = common.linkage });
|
||||
@export(__aeabi_memmove8, .{ .name = "__aeabi_memmove8", .linkage = common.linkage });
|
||||
@export(__aeabi_memmove, .{ .name = "__aeabi_memmove", .linkage = common.linkage, .visibility = common.visibility });
|
||||
@export(__aeabi_memmove4, .{ .name = "__aeabi_memmove4", .linkage = common.linkage, .visibility = common.visibility });
|
||||
@export(__aeabi_memmove8, .{ .name = "__aeabi_memmove8", .linkage = common.linkage, .visibility = common.visibility });
|
||||
|
||||
@export(__aeabi_memset, .{ .name = "__aeabi_memset", .linkage = common.linkage });
|
||||
@export(__aeabi_memset4, .{ .name = "__aeabi_memset4", .linkage = common.linkage });
|
||||
@export(__aeabi_memset8, .{ .name = "__aeabi_memset8", .linkage = common.linkage });
|
||||
@export(__aeabi_memset, .{ .name = "__aeabi_memset", .linkage = common.linkage, .visibility = common.visibility });
|
||||
@export(__aeabi_memset4, .{ .name = "__aeabi_memset4", .linkage = common.linkage, .visibility = common.visibility });
|
||||
@export(__aeabi_memset8, .{ .name = "__aeabi_memset8", .linkage = common.linkage, .visibility = common.visibility });
|
||||
|
||||
@export(__aeabi_memclr, .{ .name = "__aeabi_memclr", .linkage = common.linkage });
|
||||
@export(__aeabi_memclr4, .{ .name = "__aeabi_memclr4", .linkage = common.linkage });
|
||||
@export(__aeabi_memclr8, .{ .name = "__aeabi_memclr8", .linkage = common.linkage });
|
||||
@export(__aeabi_memclr, .{ .name = "__aeabi_memclr", .linkage = common.linkage, .visibility = common.visibility });
|
||||
@export(__aeabi_memclr4, .{ .name = "__aeabi_memclr4", .linkage = common.linkage, .visibility = common.visibility });
|
||||
@export(__aeabi_memclr8, .{ .name = "__aeabi_memclr8", .linkage = common.linkage, .visibility = common.visibility });
|
||||
|
||||
if (builtin.os.tag == .linux) {
|
||||
@export(__aeabi_read_tp, .{ .name = "__aeabi_read_tp", .linkage = common.linkage });
|
||||
@export(__aeabi_read_tp, .{ .name = "__aeabi_read_tp", .linkage = common.linkage, .visibility = common.visibility });
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,9 +1,11 @@
|
||||
const std = @import("std");
|
||||
const builtin = @import("builtin");
|
||||
const common = @import("./common.zig");
|
||||
const cpu = builtin.cpu;
|
||||
const arch = cpu.arch;
|
||||
const linkage: std.builtin.GlobalLinkage = if (builtin.is_test) .Internal else .Weak;
|
||||
pub const panic = @import("common.zig").panic;
|
||||
const linkage = common.linkage;
|
||||
const visibility = common.visibility;
|
||||
pub const panic = common.panic;
|
||||
|
||||
// This parameter is true iff the target architecture supports the bare minimum
|
||||
// to implement the atomic load/store intrinsics.
|
||||
@ -454,59 +456,59 @@ fn __atomic_fetch_nand_8(ptr: *u64, val: u64, model: i32) callconv(.C) u64 {
|
||||
|
||||
comptime {
|
||||
if (supports_atomic_ops and builtin.object_format != .c) {
|
||||
@export(__atomic_load, .{ .name = "__atomic_load", .linkage = linkage });
|
||||
@export(__atomic_store, .{ .name = "__atomic_store", .linkage = linkage });
|
||||
@export(__atomic_exchange, .{ .name = "__atomic_exchange", .linkage = linkage });
|
||||
@export(__atomic_compare_exchange, .{ .name = "__atomic_compare_exchange", .linkage = linkage });
|
||||
@export(__atomic_load, .{ .name = "__atomic_load", .linkage = linkage, .visibility = visibility });
|
||||
@export(__atomic_store, .{ .name = "__atomic_store", .linkage = linkage, .visibility = visibility });
|
||||
@export(__atomic_exchange, .{ .name = "__atomic_exchange", .linkage = linkage, .visibility = visibility });
|
||||
@export(__atomic_compare_exchange, .{ .name = "__atomic_compare_exchange", .linkage = linkage, .visibility = visibility });
|
||||
|
||||
@export(__atomic_fetch_add_1, .{ .name = "__atomic_fetch_add_1", .linkage = linkage });
|
||||
@export(__atomic_fetch_add_2, .{ .name = "__atomic_fetch_add_2", .linkage = linkage });
|
||||
@export(__atomic_fetch_add_4, .{ .name = "__atomic_fetch_add_4", .linkage = linkage });
|
||||
@export(__atomic_fetch_add_8, .{ .name = "__atomic_fetch_add_8", .linkage = linkage });
|
||||
@export(__atomic_fetch_add_1, .{ .name = "__atomic_fetch_add_1", .linkage = linkage, .visibility = visibility });
|
||||
@export(__atomic_fetch_add_2, .{ .name = "__atomic_fetch_add_2", .linkage = linkage, .visibility = visibility });
|
||||
@export(__atomic_fetch_add_4, .{ .name = "__atomic_fetch_add_4", .linkage = linkage, .visibility = visibility });
|
||||
@export(__atomic_fetch_add_8, .{ .name = "__atomic_fetch_add_8", .linkage = linkage, .visibility = visibility });
|
||||
|
||||
@export(__atomic_fetch_sub_1, .{ .name = "__atomic_fetch_sub_1", .linkage = linkage });
|
||||
@export(__atomic_fetch_sub_2, .{ .name = "__atomic_fetch_sub_2", .linkage = linkage });
|
||||
@export(__atomic_fetch_sub_4, .{ .name = "__atomic_fetch_sub_4", .linkage = linkage });
|
||||
@export(__atomic_fetch_sub_8, .{ .name = "__atomic_fetch_sub_8", .linkage = linkage });
|
||||
@export(__atomic_fetch_sub_1, .{ .name = "__atomic_fetch_sub_1", .linkage = linkage, .visibility = visibility });
|
||||
@export(__atomic_fetch_sub_2, .{ .name = "__atomic_fetch_sub_2", .linkage = linkage, .visibility = visibility });
|
||||
@export(__atomic_fetch_sub_4, .{ .name = "__atomic_fetch_sub_4", .linkage = linkage, .visibility = visibility });
|
||||
@export(__atomic_fetch_sub_8, .{ .name = "__atomic_fetch_sub_8", .linkage = linkage, .visibility = visibility });
|
||||
|
||||
@export(__atomic_fetch_and_1, .{ .name = "__atomic_fetch_and_1", .linkage = linkage });
|
||||
@export(__atomic_fetch_and_2, .{ .name = "__atomic_fetch_and_2", .linkage = linkage });
|
||||
@export(__atomic_fetch_and_4, .{ .name = "__atomic_fetch_and_4", .linkage = linkage });
|
||||
@export(__atomic_fetch_and_8, .{ .name = "__atomic_fetch_and_8", .linkage = linkage });
|
||||
@export(__atomic_fetch_and_1, .{ .name = "__atomic_fetch_and_1", .linkage = linkage, .visibility = visibility });
|
||||
@export(__atomic_fetch_and_2, .{ .name = "__atomic_fetch_and_2", .linkage = linkage, .visibility = visibility });
|
||||
@export(__atomic_fetch_and_4, .{ .name = "__atomic_fetch_and_4", .linkage = linkage, .visibility = visibility });
|
||||
@export(__atomic_fetch_and_8, .{ .name = "__atomic_fetch_and_8", .linkage = linkage, .visibility = visibility });
|
||||
|
||||
@export(__atomic_fetch_or_1, .{ .name = "__atomic_fetch_or_1", .linkage = linkage });
|
||||
@export(__atomic_fetch_or_2, .{ .name = "__atomic_fetch_or_2", .linkage = linkage });
|
||||
@export(__atomic_fetch_or_4, .{ .name = "__atomic_fetch_or_4", .linkage = linkage });
|
||||
@export(__atomic_fetch_or_8, .{ .name = "__atomic_fetch_or_8", .linkage = linkage });
|
||||
@export(__atomic_fetch_or_1, .{ .name = "__atomic_fetch_or_1", .linkage = linkage, .visibility = visibility });
|
||||
@export(__atomic_fetch_or_2, .{ .name = "__atomic_fetch_or_2", .linkage = linkage, .visibility = visibility });
|
||||
@export(__atomic_fetch_or_4, .{ .name = "__atomic_fetch_or_4", .linkage = linkage, .visibility = visibility });
|
||||
@export(__atomic_fetch_or_8, .{ .name = "__atomic_fetch_or_8", .linkage = linkage, .visibility = visibility });
|
||||
|
||||
@export(__atomic_fetch_xor_1, .{ .name = "__atomic_fetch_xor_1", .linkage = linkage });
|
||||
@export(__atomic_fetch_xor_2, .{ .name = "__atomic_fetch_xor_2", .linkage = linkage });
|
||||
@export(__atomic_fetch_xor_4, .{ .name = "__atomic_fetch_xor_4", .linkage = linkage });
|
||||
@export(__atomic_fetch_xor_8, .{ .name = "__atomic_fetch_xor_8", .linkage = linkage });
|
||||
@export(__atomic_fetch_xor_1, .{ .name = "__atomic_fetch_xor_1", .linkage = linkage, .visibility = visibility });
|
||||
@export(__atomic_fetch_xor_2, .{ .name = "__atomic_fetch_xor_2", .linkage = linkage, .visibility = visibility });
|
||||
@export(__atomic_fetch_xor_4, .{ .name = "__atomic_fetch_xor_4", .linkage = linkage, .visibility = visibility });
|
||||
@export(__atomic_fetch_xor_8, .{ .name = "__atomic_fetch_xor_8", .linkage = linkage, .visibility = visibility });
|
||||
|
||||
@export(__atomic_fetch_nand_1, .{ .name = "__atomic_fetch_nand_1", .linkage = linkage });
|
||||
@export(__atomic_fetch_nand_2, .{ .name = "__atomic_fetch_nand_2", .linkage = linkage });
|
||||
@export(__atomic_fetch_nand_4, .{ .name = "__atomic_fetch_nand_4", .linkage = linkage });
|
||||
@export(__atomic_fetch_nand_8, .{ .name = "__atomic_fetch_nand_8", .linkage = linkage });
|
||||
@export(__atomic_fetch_nand_1, .{ .name = "__atomic_fetch_nand_1", .linkage = linkage, .visibility = visibility });
|
||||
@export(__atomic_fetch_nand_2, .{ .name = "__atomic_fetch_nand_2", .linkage = linkage, .visibility = visibility });
|
||||
@export(__atomic_fetch_nand_4, .{ .name = "__atomic_fetch_nand_4", .linkage = linkage, .visibility = visibility });
|
||||
@export(__atomic_fetch_nand_8, .{ .name = "__atomic_fetch_nand_8", .linkage = linkage, .visibility = visibility });
|
||||
|
||||
@export(__atomic_load_1, .{ .name = "__atomic_load_1", .linkage = linkage });
|
||||
@export(__atomic_load_2, .{ .name = "__atomic_load_2", .linkage = linkage });
|
||||
@export(__atomic_load_4, .{ .name = "__atomic_load_4", .linkage = linkage });
|
||||
@export(__atomic_load_8, .{ .name = "__atomic_load_8", .linkage = linkage });
|
||||
@export(__atomic_load_1, .{ .name = "__atomic_load_1", .linkage = linkage, .visibility = visibility });
|
||||
@export(__atomic_load_2, .{ .name = "__atomic_load_2", .linkage = linkage, .visibility = visibility });
|
||||
@export(__atomic_load_4, .{ .name = "__atomic_load_4", .linkage = linkage, .visibility = visibility });
|
||||
@export(__atomic_load_8, .{ .name = "__atomic_load_8", .linkage = linkage, .visibility = visibility });
|
||||
|
||||
@export(__atomic_store_1, .{ .name = "__atomic_store_1", .linkage = linkage });
|
||||
@export(__atomic_store_2, .{ .name = "__atomic_store_2", .linkage = linkage });
|
||||
@export(__atomic_store_4, .{ .name = "__atomic_store_4", .linkage = linkage });
|
||||
@export(__atomic_store_8, .{ .name = "__atomic_store_8", .linkage = linkage });
|
||||
@export(__atomic_store_1, .{ .name = "__atomic_store_1", .linkage = linkage, .visibility = visibility });
|
||||
@export(__atomic_store_2, .{ .name = "__atomic_store_2", .linkage = linkage, .visibility = visibility });
|
||||
@export(__atomic_store_4, .{ .name = "__atomic_store_4", .linkage = linkage, .visibility = visibility });
|
||||
@export(__atomic_store_8, .{ .name = "__atomic_store_8", .linkage = linkage, .visibility = visibility });
|
||||
|
||||
@export(__atomic_exchange_1, .{ .name = "__atomic_exchange_1", .linkage = linkage });
|
||||
@export(__atomic_exchange_2, .{ .name = "__atomic_exchange_2", .linkage = linkage });
|
||||
@export(__atomic_exchange_4, .{ .name = "__atomic_exchange_4", .linkage = linkage });
|
||||
@export(__atomic_exchange_8, .{ .name = "__atomic_exchange_8", .linkage = linkage });
|
||||
@export(__atomic_exchange_1, .{ .name = "__atomic_exchange_1", .linkage = linkage, .visibility = visibility });
|
||||
@export(__atomic_exchange_2, .{ .name = "__atomic_exchange_2", .linkage = linkage, .visibility = visibility });
|
||||
@export(__atomic_exchange_4, .{ .name = "__atomic_exchange_4", .linkage = linkage, .visibility = visibility });
|
||||
@export(__atomic_exchange_8, .{ .name = "__atomic_exchange_8", .linkage = linkage, .visibility = visibility });
|
||||
|
||||
@export(__atomic_compare_exchange_1, .{ .name = "__atomic_compare_exchange_1", .linkage = linkage });
|
||||
@export(__atomic_compare_exchange_2, .{ .name = "__atomic_compare_exchange_2", .linkage = linkage });
|
||||
@export(__atomic_compare_exchange_4, .{ .name = "__atomic_compare_exchange_4", .linkage = linkage });
|
||||
@export(__atomic_compare_exchange_8, .{ .name = "__atomic_compare_exchange_8", .linkage = linkage });
|
||||
@export(__atomic_compare_exchange_1, .{ .name = "__atomic_compare_exchange_1", .linkage = linkage, .visibility = visibility });
|
||||
@export(__atomic_compare_exchange_2, .{ .name = "__atomic_compare_exchange_2", .linkage = linkage, .visibility = visibility });
|
||||
@export(__atomic_compare_exchange_4, .{ .name = "__atomic_compare_exchange_4", .linkage = linkage, .visibility = visibility });
|
||||
@export(__atomic_compare_exchange_8, .{ .name = "__atomic_compare_exchange_8", .linkage = linkage, .visibility = visibility });
|
||||
}
|
||||
}
|
||||
|
@ -9,8 +9,8 @@ pub const panic = common.panic;
|
||||
comptime {
|
||||
if (arch == .x86 and abi == .msvc) {
|
||||
// Don't let LLVM apply the stdcall name mangling on those MSVC builtins
|
||||
@export(_alldiv, .{ .name = "\x01__alldiv", .linkage = common.linkage });
|
||||
@export(_aulldiv, .{ .name = "\x01__aulldiv", .linkage = common.linkage });
|
||||
@export(_alldiv, .{ .name = "\x01__alldiv", .linkage = common.linkage, .visibility = common.visibility });
|
||||
@export(_aulldiv, .{ .name = "\x01__aulldiv", .linkage = common.linkage, .visibility = common.visibility });
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -9,8 +9,8 @@ pub const panic = common.panic;
|
||||
comptime {
|
||||
if (arch == .x86 and abi == .msvc) {
|
||||
// Don't let LLVM apply the stdcall name mangling on those MSVC builtins
|
||||
@export(_allrem, .{ .name = "\x01__allrem", .linkage = common.linkage });
|
||||
@export(_aullrem, .{ .name = "\x01__aullrem", .linkage = common.linkage });
|
||||
@export(_allrem, .{ .name = "\x01__allrem", .linkage = common.linkage, .visibility = common.visibility });
|
||||
@export(_aullrem, .{ .name = "\x01__aullrem", .linkage = common.linkage, .visibility = common.visibility });
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -2,7 +2,7 @@ const std = @import("std");
|
||||
const common = @import("./common.zig");
|
||||
|
||||
comptime {
|
||||
@export(bcmp, .{ .name = "bcmp", .linkage = common.linkage });
|
||||
@export(bcmp, .{ .name = "bcmp", .linkage = common.linkage, .visibility = common.visibility });
|
||||
}
|
||||
|
||||
pub fn bcmp(vl: [*]allowzero const u8, vr: [*]allowzero const u8, n: usize) callconv(.C) c_int {
|
||||
|
@ -5,9 +5,9 @@ const common = @import("common.zig");
|
||||
pub const panic = common.panic;
|
||||
|
||||
comptime {
|
||||
@export(__bswapsi2, .{ .name = "__bswapsi2", .linkage = common.linkage });
|
||||
@export(__bswapdi2, .{ .name = "__bswapdi2", .linkage = common.linkage });
|
||||
@export(__bswapti2, .{ .name = "__bswapti2", .linkage = common.linkage });
|
||||
@export(__bswapsi2, .{ .name = "__bswapsi2", .linkage = common.linkage, .visibility = common.visibility });
|
||||
@export(__bswapdi2, .{ .name = "__bswapdi2", .linkage = common.linkage, .visibility = common.visibility });
|
||||
@export(__bswapti2, .{ .name = "__bswapti2", .linkage = common.linkage, .visibility = common.visibility });
|
||||
}
|
||||
|
||||
// bswap - byteswap
|
||||
|
@ -14,15 +14,15 @@ const common = @import("common.zig");
|
||||
pub const panic = common.panic;
|
||||
|
||||
comptime {
|
||||
@export(__ceilh, .{ .name = "__ceilh", .linkage = common.linkage });
|
||||
@export(ceilf, .{ .name = "ceilf", .linkage = common.linkage });
|
||||
@export(ceil, .{ .name = "ceil", .linkage = common.linkage });
|
||||
@export(__ceilx, .{ .name = "__ceilx", .linkage = common.linkage });
|
||||
@export(__ceilh, .{ .name = "__ceilh", .linkage = common.linkage, .visibility = common.visibility });
|
||||
@export(ceilf, .{ .name = "ceilf", .linkage = common.linkage, .visibility = common.visibility });
|
||||
@export(ceil, .{ .name = "ceil", .linkage = common.linkage, .visibility = common.visibility });
|
||||
@export(__ceilx, .{ .name = "__ceilx", .linkage = common.linkage, .visibility = common.visibility });
|
||||
if (common.want_ppc_abi) {
|
||||
@export(ceilq, .{ .name = "ceilf128", .linkage = common.linkage });
|
||||
@export(ceilq, .{ .name = "ceilf128", .linkage = common.linkage, .visibility = common.visibility });
|
||||
}
|
||||
@export(ceilq, .{ .name = "ceilq", .linkage = common.linkage });
|
||||
@export(ceill, .{ .name = "ceill", .linkage = common.linkage });
|
||||
@export(ceilq, .{ .name = "ceilq", .linkage = common.linkage, .visibility = common.visibility });
|
||||
@export(ceill, .{ .name = "ceill", .linkage = common.linkage, .visibility = common.visibility });
|
||||
}
|
||||
|
||||
pub fn __ceilh(x: f16) callconv(.C) f16 {
|
||||
|
@ -6,12 +6,12 @@ const common = @import("common.zig");
|
||||
pub const panic = common.panic;
|
||||
|
||||
comptime {
|
||||
@export(__cmpsi2, .{ .name = "__cmpsi2", .linkage = common.linkage });
|
||||
@export(__cmpdi2, .{ .name = "__cmpdi2", .linkage = common.linkage });
|
||||
@export(__cmpti2, .{ .name = "__cmpti2", .linkage = common.linkage });
|
||||
@export(__ucmpsi2, .{ .name = "__ucmpsi2", .linkage = common.linkage });
|
||||
@export(__ucmpdi2, .{ .name = "__ucmpdi2", .linkage = common.linkage });
|
||||
@export(__ucmpti2, .{ .name = "__ucmpti2", .linkage = common.linkage });
|
||||
@export(__cmpsi2, .{ .name = "__cmpsi2", .linkage = common.linkage, .visibility = common.visibility });
|
||||
@export(__cmpdi2, .{ .name = "__cmpdi2", .linkage = common.linkage, .visibility = common.visibility });
|
||||
@export(__cmpti2, .{ .name = "__cmpti2", .linkage = common.linkage, .visibility = common.visibility });
|
||||
@export(__ucmpsi2, .{ .name = "__ucmpsi2", .linkage = common.linkage, .visibility = common.visibility });
|
||||
@export(__ucmpdi2, .{ .name = "__ucmpdi2", .linkage = common.linkage, .visibility = common.visibility });
|
||||
@export(__ucmpti2, .{ .name = "__ucmpti2", .linkage = common.linkage, .visibility = common.visibility });
|
||||
}
|
||||
|
||||
// cmp - signed compare
|
||||
|
@ -7,15 +7,15 @@ pub const panic = common.panic;
|
||||
|
||||
comptime {
|
||||
if (common.want_aeabi) {
|
||||
@export(__aeabi_dcmpeq, .{ .name = "__aeabi_dcmpeq", .linkage = common.linkage });
|
||||
@export(__aeabi_dcmplt, .{ .name = "__aeabi_dcmplt", .linkage = common.linkage });
|
||||
@export(__aeabi_dcmple, .{ .name = "__aeabi_dcmple", .linkage = common.linkage });
|
||||
@export(__aeabi_dcmpeq, .{ .name = "__aeabi_dcmpeq", .linkage = common.linkage, .visibility = common.visibility });
|
||||
@export(__aeabi_dcmplt, .{ .name = "__aeabi_dcmplt", .linkage = common.linkage, .visibility = common.visibility });
|
||||
@export(__aeabi_dcmple, .{ .name = "__aeabi_dcmple", .linkage = common.linkage, .visibility = common.visibility });
|
||||
} else {
|
||||
@export(__eqdf2, .{ .name = "__eqdf2", .linkage = common.linkage });
|
||||
@export(__nedf2, .{ .name = "__nedf2", .linkage = common.linkage });
|
||||
@export(__ledf2, .{ .name = "__ledf2", .linkage = common.linkage });
|
||||
@export(__cmpdf2, .{ .name = "__cmpdf2", .linkage = common.linkage });
|
||||
@export(__ltdf2, .{ .name = "__ltdf2", .linkage = common.linkage });
|
||||
@export(__eqdf2, .{ .name = "__eqdf2", .linkage = common.linkage, .visibility = common.visibility });
|
||||
@export(__nedf2, .{ .name = "__nedf2", .linkage = common.linkage, .visibility = common.visibility });
|
||||
@export(__ledf2, .{ .name = "__ledf2", .linkage = common.linkage, .visibility = common.visibility });
|
||||
@export(__cmpdf2, .{ .name = "__cmpdf2", .linkage = common.linkage, .visibility = common.visibility });
|
||||
@export(__ltdf2, .{ .name = "__ltdf2", .linkage = common.linkage, .visibility = common.visibility });
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -6,11 +6,11 @@ const comparef = @import("./comparef.zig");
|
||||
pub const panic = common.panic;
|
||||
|
||||
comptime {
|
||||
@export(__eqhf2, .{ .name = "__eqhf2", .linkage = common.linkage });
|
||||
@export(__nehf2, .{ .name = "__nehf2", .linkage = common.linkage });
|
||||
@export(__lehf2, .{ .name = "__lehf2", .linkage = common.linkage });
|
||||
@export(__cmphf2, .{ .name = "__cmphf2", .linkage = common.linkage });
|
||||
@export(__lthf2, .{ .name = "__lthf2", .linkage = common.linkage });
|
||||
@export(__eqhf2, .{ .name = "__eqhf2", .linkage = common.linkage, .visibility = common.visibility });
|
||||
@export(__nehf2, .{ .name = "__nehf2", .linkage = common.linkage, .visibility = common.visibility });
|
||||
@export(__lehf2, .{ .name = "__lehf2", .linkage = common.linkage, .visibility = common.visibility });
|
||||
@export(__cmphf2, .{ .name = "__cmphf2", .linkage = common.linkage, .visibility = common.visibility });
|
||||
@export(__lthf2, .{ .name = "__lthf2", .linkage = common.linkage, .visibility = common.visibility });
|
||||
}
|
||||
|
||||
/// "These functions calculate a <=> b. That is, if a is less than b, they return -1;
|
||||
|
@ -7,15 +7,15 @@ pub const panic = common.panic;
|
||||
|
||||
comptime {
|
||||
if (common.want_aeabi) {
|
||||
@export(__aeabi_fcmpeq, .{ .name = "__aeabi_fcmpeq", .linkage = common.linkage });
|
||||
@export(__aeabi_fcmplt, .{ .name = "__aeabi_fcmplt", .linkage = common.linkage });
|
||||
@export(__aeabi_fcmple, .{ .name = "__aeabi_fcmple", .linkage = common.linkage });
|
||||
@export(__aeabi_fcmpeq, .{ .name = "__aeabi_fcmpeq", .linkage = common.linkage, .visibility = common.visibility });
|
||||
@export(__aeabi_fcmplt, .{ .name = "__aeabi_fcmplt", .linkage = common.linkage, .visibility = common.visibility });
|
||||
@export(__aeabi_fcmple, .{ .name = "__aeabi_fcmple", .linkage = common.linkage, .visibility = common.visibility });
|
||||
} else {
|
||||
@export(__eqsf2, .{ .name = "__eqsf2", .linkage = common.linkage });
|
||||
@export(__nesf2, .{ .name = "__nesf2", .linkage = common.linkage });
|
||||
@export(__lesf2, .{ .name = "__lesf2", .linkage = common.linkage });
|
||||
@export(__cmpsf2, .{ .name = "__cmpsf2", .linkage = common.linkage });
|
||||
@export(__ltsf2, .{ .name = "__ltsf2", .linkage = common.linkage });
|
||||
@export(__eqsf2, .{ .name = "__eqsf2", .linkage = common.linkage, .visibility = common.visibility });
|
||||
@export(__nesf2, .{ .name = "__nesf2", .linkage = common.linkage, .visibility = common.visibility });
|
||||
@export(__lesf2, .{ .name = "__lesf2", .linkage = common.linkage, .visibility = common.visibility });
|
||||
@export(__cmpsf2, .{ .name = "__cmpsf2", .linkage = common.linkage, .visibility = common.visibility });
|
||||
@export(__ltsf2, .{ .name = "__ltsf2", .linkage = common.linkage, .visibility = common.visibility });
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -7,24 +7,24 @@ pub const panic = common.panic;
|
||||
|
||||
comptime {
|
||||
if (common.want_ppc_abi) {
|
||||
@export(__eqtf2, .{ .name = "__eqkf2", .linkage = common.linkage });
|
||||
@export(__netf2, .{ .name = "__nekf2", .linkage = common.linkage });
|
||||
@export(__lttf2, .{ .name = "__ltkf2", .linkage = common.linkage });
|
||||
@export(__letf2, .{ .name = "__lekf2", .linkage = common.linkage });
|
||||
@export(__eqtf2, .{ .name = "__eqkf2", .linkage = common.linkage, .visibility = common.visibility });
|
||||
@export(__netf2, .{ .name = "__nekf2", .linkage = common.linkage, .visibility = common.visibility });
|
||||
@export(__lttf2, .{ .name = "__ltkf2", .linkage = common.linkage, .visibility = common.visibility });
|
||||
@export(__letf2, .{ .name = "__lekf2", .linkage = common.linkage, .visibility = common.visibility });
|
||||
} else if (common.want_sparc_abi) {
|
||||
@export(_Qp_cmp, .{ .name = "_Qp_cmp", .linkage = common.linkage });
|
||||
@export(_Qp_feq, .{ .name = "_Qp_feq", .linkage = common.linkage });
|
||||
@export(_Qp_fne, .{ .name = "_Qp_fne", .linkage = common.linkage });
|
||||
@export(_Qp_flt, .{ .name = "_Qp_flt", .linkage = common.linkage });
|
||||
@export(_Qp_fle, .{ .name = "_Qp_fle", .linkage = common.linkage });
|
||||
@export(_Qp_fgt, .{ .name = "_Qp_fgt", .linkage = common.linkage });
|
||||
@export(_Qp_fge, .{ .name = "_Qp_fge", .linkage = common.linkage });
|
||||
@export(_Qp_cmp, .{ .name = "_Qp_cmp", .linkage = common.linkage, .visibility = common.visibility });
|
||||
@export(_Qp_feq, .{ .name = "_Qp_feq", .linkage = common.linkage, .visibility = common.visibility });
|
||||
@export(_Qp_fne, .{ .name = "_Qp_fne", .linkage = common.linkage, .visibility = common.visibility });
|
||||
@export(_Qp_flt, .{ .name = "_Qp_flt", .linkage = common.linkage, .visibility = common.visibility });
|
||||
@export(_Qp_fle, .{ .name = "_Qp_fle", .linkage = common.linkage, .visibility = common.visibility });
|
||||
@export(_Qp_fgt, .{ .name = "_Qp_fgt", .linkage = common.linkage, .visibility = common.visibility });
|
||||
@export(_Qp_fge, .{ .name = "_Qp_fge", .linkage = common.linkage, .visibility = common.visibility });
|
||||
}
|
||||
@export(__eqtf2, .{ .name = "__eqtf2", .linkage = common.linkage });
|
||||
@export(__netf2, .{ .name = "__netf2", .linkage = common.linkage });
|
||||
@export(__letf2, .{ .name = "__letf2", .linkage = common.linkage });
|
||||
@export(__cmptf2, .{ .name = "__cmptf2", .linkage = common.linkage });
|
||||
@export(__lttf2, .{ .name = "__lttf2", .linkage = common.linkage });
|
||||
@export(__eqtf2, .{ .name = "__eqtf2", .linkage = common.linkage, .visibility = common.visibility });
|
||||
@export(__netf2, .{ .name = "__netf2", .linkage = common.linkage, .visibility = common.visibility });
|
||||
@export(__letf2, .{ .name = "__letf2", .linkage = common.linkage, .visibility = common.visibility });
|
||||
@export(__cmptf2, .{ .name = "__cmptf2", .linkage = common.linkage, .visibility = common.visibility });
|
||||
@export(__lttf2, .{ .name = "__lttf2", .linkage = common.linkage, .visibility = common.visibility });
|
||||
}
|
||||
|
||||
/// "These functions calculate a <=> b. That is, if a is less than b, they return -1;
|
||||
|
@ -6,11 +6,11 @@ const comparef = @import("./comparef.zig");
|
||||
pub const panic = common.panic;
|
||||
|
||||
comptime {
|
||||
@export(__eqxf2, .{ .name = "__eqxf2", .linkage = common.linkage });
|
||||
@export(__nexf2, .{ .name = "__nexf2", .linkage = common.linkage });
|
||||
@export(__lexf2, .{ .name = "__lexf2", .linkage = common.linkage });
|
||||
@export(__cmpxf2, .{ .name = "__cmpxf2", .linkage = common.linkage });
|
||||
@export(__ltxf2, .{ .name = "__ltxf2", .linkage = common.linkage });
|
||||
@export(__eqxf2, .{ .name = "__eqxf2", .linkage = common.linkage, .visibility = common.visibility });
|
||||
@export(__nexf2, .{ .name = "__nexf2", .linkage = common.linkage, .visibility = common.visibility });
|
||||
@export(__lexf2, .{ .name = "__lexf2", .linkage = common.linkage, .visibility = common.visibility });
|
||||
@export(__cmpxf2, .{ .name = "__cmpxf2", .linkage = common.linkage, .visibility = common.visibility });
|
||||
@export(__ltxf2, .{ .name = "__ltxf2", .linkage = common.linkage, .visibility = common.visibility });
|
||||
}
|
||||
|
||||
/// "These functions calculate a <=> b. That is, if a is less than b, they return -1;
|
||||
|
@ -2,6 +2,10 @@ const std = @import("std");
|
||||
const builtin = @import("builtin");
|
||||
|
||||
pub const linkage: std.builtin.GlobalLinkage = if (builtin.is_test) .Internal else .Weak;
|
||||
/// Determines the symbol's visibility to other objects.
|
||||
/// For WebAssembly this allows the symbol to be resolved to other modules, but will not
|
||||
/// export it to the host runtime.
|
||||
pub const visibility: std.builtin.SymbolVisibility = if (builtin.target.isWasm()) .hidden else .default;
|
||||
pub const want_aeabi = switch (builtin.abi) {
|
||||
.eabi,
|
||||
.eabihf,
|
||||
|
@ -12,15 +12,15 @@ const rem_pio2 = @import("rem_pio2.zig").rem_pio2;
|
||||
const rem_pio2f = @import("rem_pio2f.zig").rem_pio2f;
|
||||
|
||||
comptime {
|
||||
@export(__cosh, .{ .name = "__cosh", .linkage = common.linkage });
|
||||
@export(cosf, .{ .name = "cosf", .linkage = common.linkage });
|
||||
@export(cos, .{ .name = "cos", .linkage = common.linkage });
|
||||
@export(__cosx, .{ .name = "__cosx", .linkage = common.linkage });
|
||||
@export(__cosh, .{ .name = "__cosh", .linkage = common.linkage, .visibility = common.visibility });
|
||||
@export(cosf, .{ .name = "cosf", .linkage = common.linkage, .visibility = common.visibility });
|
||||
@export(cos, .{ .name = "cos", .linkage = common.linkage, .visibility = common.visibility });
|
||||
@export(__cosx, .{ .name = "__cosx", .linkage = common.linkage, .visibility = common.visibility });
|
||||
if (common.want_ppc_abi) {
|
||||
@export(cosq, .{ .name = "cosf128", .linkage = common.linkage });
|
||||
@export(cosq, .{ .name = "cosf128", .linkage = common.linkage, .visibility = common.visibility });
|
||||
}
|
||||
@export(cosq, .{ .name = "cosq", .linkage = common.linkage });
|
||||
@export(cosl, .{ .name = "cosl", .linkage = common.linkage });
|
||||
@export(cosq, .{ .name = "cosq", .linkage = common.linkage, .visibility = common.visibility });
|
||||
@export(cosl, .{ .name = "cosl", .linkage = common.linkage, .visibility = common.visibility });
|
||||
}
|
||||
|
||||
pub fn __cosh(a: f16) callconv(.C) f16 {
|
||||
|
@ -6,15 +6,15 @@ const common = @import("common.zig");
|
||||
pub const panic = common.panic;
|
||||
|
||||
comptime {
|
||||
@export(__clzsi2, .{ .name = "__clzsi2", .linkage = common.linkage });
|
||||
@export(__clzdi2, .{ .name = "__clzdi2", .linkage = common.linkage });
|
||||
@export(__clzti2, .{ .name = "__clzti2", .linkage = common.linkage });
|
||||
@export(__ctzsi2, .{ .name = "__ctzsi2", .linkage = common.linkage });
|
||||
@export(__ctzdi2, .{ .name = "__ctzdi2", .linkage = common.linkage });
|
||||
@export(__ctzti2, .{ .name = "__ctzti2", .linkage = common.linkage });
|
||||
@export(__ffssi2, .{ .name = "__ffssi2", .linkage = common.linkage });
|
||||
@export(__ffsdi2, .{ .name = "__ffsdi2", .linkage = common.linkage });
|
||||
@export(__ffsti2, .{ .name = "__ffsti2", .linkage = common.linkage });
|
||||
@export(__clzsi2, .{ .name = "__clzsi2", .linkage = common.linkage, .visibility = common.visibility });
|
||||
@export(__clzdi2, .{ .name = "__clzdi2", .linkage = common.linkage, .visibility = common.visibility });
|
||||
@export(__clzti2, .{ .name = "__clzti2", .linkage = common.linkage, .visibility = common.visibility });
|
||||
@export(__ctzsi2, .{ .name = "__ctzsi2", .linkage = common.linkage, .visibility = common.visibility });
|
||||
@export(__ctzdi2, .{ .name = "__ctzdi2", .linkage = common.linkage, .visibility = common.visibility });
|
||||
@export(__ctzti2, .{ .name = "__ctzti2", .linkage = common.linkage, .visibility = common.visibility });
|
||||
@export(__ffssi2, .{ .name = "__ffssi2", .linkage = common.linkage, .visibility = common.visibility });
|
||||
@export(__ffsdi2, .{ .name = "__ffsdi2", .linkage = common.linkage, .visibility = common.visibility });
|
||||
@export(__ffsti2, .{ .name = "__ffsti2", .linkage = common.linkage, .visibility = common.visibility });
|
||||
}
|
||||
|
||||
// clz - count leading zeroes
|
||||
|
@ -4,7 +4,7 @@ const Complex = @import("./mulc3.zig").Complex;
|
||||
|
||||
comptime {
|
||||
if (@import("builtin").zig_backend != .stage2_c) {
|
||||
@export(__divdc3, .{ .name = "__divdc3", .linkage = common.linkage });
|
||||
@export(__divdc3, .{ .name = "__divdc3", .linkage = common.linkage, .visibility = common.visibility });
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -15,9 +15,9 @@ pub const panic = common.panic;
|
||||
|
||||
comptime {
|
||||
if (common.want_aeabi) {
|
||||
@export(__aeabi_ddiv, .{ .name = "__aeabi_ddiv", .linkage = common.linkage });
|
||||
@export(__aeabi_ddiv, .{ .name = "__aeabi_ddiv", .linkage = common.linkage, .visibility = common.visibility });
|
||||
} else {
|
||||
@export(__divdf3, .{ .name = "__divdf3", .linkage = common.linkage });
|
||||
@export(__divdf3, .{ .name = "__divdf3", .linkage = common.linkage, .visibility = common.visibility });
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -4,7 +4,7 @@ const Complex = @import("./mulc3.zig").Complex;
|
||||
|
||||
comptime {
|
||||
if (@import("builtin").zig_backend != .stage2_c) {
|
||||
@export(__divhc3, .{ .name = "__divhc3", .linkage = common.linkage });
|
||||
@export(__divhc3, .{ .name = "__divhc3", .linkage = common.linkage, .visibility = common.visibility });
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -2,7 +2,7 @@ const common = @import("common.zig");
|
||||
const divsf3 = @import("./divsf3.zig");
|
||||
|
||||
comptime {
|
||||
@export(__divhf3, .{ .name = "__divhf3", .linkage = common.linkage });
|
||||
@export(__divhf3, .{ .name = "__divhf3", .linkage = common.linkage, .visibility = common.visibility });
|
||||
}
|
||||
|
||||
pub fn __divhf3(a: f16, b: f16) callconv(.C) f16 {
|
||||
|
@ -4,7 +4,7 @@ const Complex = @import("./mulc3.zig").Complex;
|
||||
|
||||
comptime {
|
||||
if (@import("builtin").zig_backend != .stage2_c) {
|
||||
@export(__divsc3, .{ .name = "__divsc3", .linkage = common.linkage });
|
||||
@export(__divsc3, .{ .name = "__divsc3", .linkage = common.linkage, .visibility = common.visibility });
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -13,9 +13,9 @@ pub const panic = common.panic;
|
||||
|
||||
comptime {
|
||||
if (common.want_aeabi) {
|
||||
@export(__aeabi_fdiv, .{ .name = "__aeabi_fdiv", .linkage = common.linkage });
|
||||
@export(__aeabi_fdiv, .{ .name = "__aeabi_fdiv", .linkage = common.linkage, .visibility = common.visibility });
|
||||
} else {
|
||||
@export(__divsf3, .{ .name = "__divsf3", .linkage = common.linkage });
|
||||
@export(__divsf3, .{ .name = "__divsf3", .linkage = common.linkage, .visibility = common.visibility });
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -4,7 +4,7 @@ const Complex = @import("./mulc3.zig").Complex;
|
||||
|
||||
comptime {
|
||||
if (@import("builtin").zig_backend != .stage2_c) {
|
||||
@export(__divtc3, .{ .name = "__divtc3", .linkage = common.linkage });
|
||||
@export(__divtc3, .{ .name = "__divtc3", .linkage = common.linkage, .visibility = common.visibility });
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -10,11 +10,11 @@ pub const panic = common.panic;
|
||||
comptime {
|
||||
if (common.want_ppc_abi) {
|
||||
// TODO: why did this not error?
|
||||
@export(__divtf3, .{ .name = "__divkf3", .linkage = common.linkage });
|
||||
@export(__divtf3, .{ .name = "__divkf3", .linkage = common.linkage, .visibility = common.visibility });
|
||||
} else if (common.want_sparc_abi) {
|
||||
@export(_Qp_div, .{ .name = "_Qp_div", .linkage = common.linkage });
|
||||
@export(_Qp_div, .{ .name = "_Qp_div", .linkage = common.linkage, .visibility = common.visibility });
|
||||
}
|
||||
@export(__divtf3, .{ .name = "__divtf3", .linkage = common.linkage });
|
||||
@export(__divtf3, .{ .name = "__divtf3", .linkage = common.linkage, .visibility = common.visibility });
|
||||
}
|
||||
|
||||
pub fn __divtf3(a: f128, b: f128) callconv(.C) f128 {
|
||||
|
@ -10,20 +10,20 @@ comptime {
|
||||
if (builtin.os.tag == .windows) {
|
||||
switch (arch) {
|
||||
.x86 => {
|
||||
@export(__divti3, .{ .name = "__divti3", .linkage = common.linkage });
|
||||
@export(__divti3, .{ .name = "__divti3", .linkage = common.linkage, .visibility = common.visibility });
|
||||
},
|
||||
.x86_64 => {
|
||||
// The "ti" functions must use Vector(2, u64) parameter types to adhere to the ABI
|
||||
// that LLVM expects compiler-rt to have.
|
||||
@export(__divti3_windows_x86_64, .{ .name = "__divti3", .linkage = common.linkage });
|
||||
@export(__divti3_windows_x86_64, .{ .name = "__divti3", .linkage = common.linkage, .visibility = common.visibility });
|
||||
},
|
||||
else => {},
|
||||
}
|
||||
if (arch.isAARCH64()) {
|
||||
@export(__divti3, .{ .name = "__divti3", .linkage = common.linkage });
|
||||
@export(__divti3, .{ .name = "__divti3", .linkage = common.linkage, .visibility = common.visibility });
|
||||
}
|
||||
} else {
|
||||
@export(__divti3, .{ .name = "__divti3", .linkage = common.linkage });
|
||||
@export(__divti3, .{ .name = "__divti3", .linkage = common.linkage, .visibility = common.visibility });
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -4,7 +4,7 @@ const Complex = @import("./mulc3.zig").Complex;
|
||||
|
||||
comptime {
|
||||
if (@import("builtin").zig_backend != .stage2_c) {
|
||||
@export(__divxc3, .{ .name = "__divxc3", .linkage = common.linkage });
|
||||
@export(__divxc3, .{ .name = "__divxc3", .linkage = common.linkage, .visibility = common.visibility });
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -9,7 +9,7 @@ const wideMultiply = common.wideMultiply;
|
||||
pub const panic = common.panic;
|
||||
|
||||
comptime {
|
||||
@export(__divxf3, .{ .name = "__divxf3", .linkage = common.linkage });
|
||||
@export(__divxf3, .{ .name = "__divxf3", .linkage = common.linkage, .visibility = common.visibility });
|
||||
}
|
||||
|
||||
pub fn __divxf3(a: f80, b: f80) callconv(.C) f80 {
|
||||
|
@ -19,7 +19,7 @@ pub const panic = common.panic;
|
||||
|
||||
comptime {
|
||||
if (builtin.link_libc and (builtin.abi == .android or builtin.os.tag == .openbsd)) {
|
||||
@export(__emutls_get_address, .{ .name = "__emutls_get_address", .linkage = common.linkage });
|
||||
@export(__emutls_get_address, .{ .name = "__emutls_get_address", .linkage = common.linkage, .visibility = common.visibility });
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -14,15 +14,15 @@ const common = @import("common.zig");
|
||||
pub const panic = common.panic;
|
||||
|
||||
comptime {
|
||||
@export(__exph, .{ .name = "__exph", .linkage = common.linkage });
|
||||
@export(expf, .{ .name = "expf", .linkage = common.linkage });
|
||||
@export(exp, .{ .name = "exp", .linkage = common.linkage });
|
||||
@export(__expx, .{ .name = "__expx", .linkage = common.linkage });
|
||||
@export(__exph, .{ .name = "__exph", .linkage = common.linkage, .visibility = common.visibility });
|
||||
@export(expf, .{ .name = "expf", .linkage = common.linkage, .visibility = common.visibility });
|
||||
@export(exp, .{ .name = "exp", .linkage = common.linkage, .visibility = common.visibility });
|
||||
@export(__expx, .{ .name = "__expx", .linkage = common.linkage, .visibility = common.visibility });
|
||||
if (common.want_ppc_abi) {
|
||||
@export(expq, .{ .name = "expf128", .linkage = common.linkage });
|
||||
@export(expq, .{ .name = "expf128", .linkage = common.linkage, .visibility = common.visibility });
|
||||
}
|
||||
@export(expq, .{ .name = "expq", .linkage = common.linkage });
|
||||
@export(expl, .{ .name = "expl", .linkage = common.linkage });
|
||||
@export(expq, .{ .name = "expq", .linkage = common.linkage, .visibility = common.visibility });
|
||||
@export(expl, .{ .name = "expl", .linkage = common.linkage, .visibility = common.visibility });
|
||||
}
|
||||
|
||||
pub fn __exph(a: f16) callconv(.C) f16 {
|
||||
|
@ -14,15 +14,15 @@ const common = @import("common.zig");
|
||||
pub const panic = common.panic;
|
||||
|
||||
comptime {
|
||||
@export(__exp2h, .{ .name = "__exp2h", .linkage = common.linkage });
|
||||
@export(exp2f, .{ .name = "exp2f", .linkage = common.linkage });
|
||||
@export(exp2, .{ .name = "exp2", .linkage = common.linkage });
|
||||
@export(__exp2x, .{ .name = "__exp2x", .linkage = common.linkage });
|
||||
@export(__exp2h, .{ .name = "__exp2h", .linkage = common.linkage, .visibility = common.visibility });
|
||||
@export(exp2f, .{ .name = "exp2f", .linkage = common.linkage, .visibility = common.visibility });
|
||||
@export(exp2, .{ .name = "exp2", .linkage = common.linkage, .visibility = common.visibility });
|
||||
@export(__exp2x, .{ .name = "__exp2x", .linkage = common.linkage, .visibility = common.visibility });
|
||||
if (common.want_ppc_abi) {
|
||||
@export(exp2q, .{ .name = "exp2f128", .linkage = common.linkage });
|
||||
@export(exp2q, .{ .name = "exp2f128", .linkage = common.linkage, .visibility = common.visibility });
|
||||
}
|
||||
@export(exp2q, .{ .name = "exp2q", .linkage = common.linkage });
|
||||
@export(exp2l, .{ .name = "exp2l", .linkage = common.linkage });
|
||||
@export(exp2q, .{ .name = "exp2q", .linkage = common.linkage, .visibility = common.visibility });
|
||||
@export(exp2l, .{ .name = "exp2l", .linkage = common.linkage, .visibility = common.visibility });
|
||||
}
|
||||
|
||||
pub fn __exp2h(x: f16) callconv(.C) f16 {
|
||||
|
@ -5,11 +5,11 @@ pub const panic = common.panic;
|
||||
|
||||
comptime {
|
||||
if (common.want_ppc_abi) {
|
||||
@export(__extenddftf2, .{ .name = "__extenddfkf2", .linkage = common.linkage });
|
||||
@export(__extenddftf2, .{ .name = "__extenddfkf2", .linkage = common.linkage, .visibility = common.visibility });
|
||||
} else if (common.want_sparc_abi) {
|
||||
@export(_Qp_dtoq, .{ .name = "_Qp_dtoq", .linkage = common.linkage });
|
||||
@export(_Qp_dtoq, .{ .name = "_Qp_dtoq", .linkage = common.linkage, .visibility = common.visibility });
|
||||
}
|
||||
@export(__extenddftf2, .{ .name = "__extenddftf2", .linkage = common.linkage });
|
||||
@export(__extenddftf2, .{ .name = "__extenddftf2", .linkage = common.linkage, .visibility = common.visibility });
|
||||
}
|
||||
|
||||
pub fn __extenddftf2(a: f64) callconv(.C) f128 {
|
||||
|
@ -4,7 +4,7 @@ const extend_f80 = @import("./extendf.zig").extend_f80;
|
||||
pub const panic = common.panic;
|
||||
|
||||
comptime {
|
||||
@export(__extenddfxf2, .{ .name = "__extenddfxf2", .linkage = common.linkage });
|
||||
@export(__extenddfxf2, .{ .name = "__extenddfxf2", .linkage = common.linkage, .visibility = common.visibility });
|
||||
}
|
||||
|
||||
pub fn __extenddfxf2(a: f64) callconv(.C) f80 {
|
||||
|
@ -4,7 +4,7 @@ const extendf = @import("./extendf.zig").extendf;
|
||||
pub const panic = common.panic;
|
||||
|
||||
comptime {
|
||||
@export(__extendhfdf2, .{ .name = "__extendhfdf2", .linkage = common.linkage });
|
||||
@export(__extendhfdf2, .{ .name = "__extendhfdf2", .linkage = common.linkage, .visibility = common.visibility });
|
||||
}
|
||||
|
||||
pub fn __extendhfdf2(a: common.F16T) callconv(.C) f64 {
|
||||
|
@ -5,11 +5,11 @@ pub const panic = common.panic;
|
||||
|
||||
comptime {
|
||||
if (common.gnu_f16_abi) {
|
||||
@export(__gnu_h2f_ieee, .{ .name = "__gnu_h2f_ieee", .linkage = common.linkage });
|
||||
@export(__gnu_h2f_ieee, .{ .name = "__gnu_h2f_ieee", .linkage = common.linkage, .visibility = common.visibility });
|
||||
} else if (common.want_aeabi) {
|
||||
@export(__aeabi_h2f, .{ .name = "__aeabi_h2f", .linkage = common.linkage });
|
||||
@export(__aeabi_h2f, .{ .name = "__aeabi_h2f", .linkage = common.linkage, .visibility = common.visibility });
|
||||
}
|
||||
@export(__extendhfsf2, .{ .name = "__extendhfsf2", .linkage = common.linkage });
|
||||
@export(__extendhfsf2, .{ .name = "__extendhfsf2", .linkage = common.linkage, .visibility = common.visibility });
|
||||
}
|
||||
|
||||
pub fn __extendhfsf2(a: common.F16T) callconv(.C) f32 {
|
||||
|
@ -4,7 +4,7 @@ const extendf = @import("./extendf.zig").extendf;
|
||||
pub const panic = common.panic;
|
||||
|
||||
comptime {
|
||||
@export(__extendhftf2, .{ .name = "__extendhftf2", .linkage = common.linkage });
|
||||
@export(__extendhftf2, .{ .name = "__extendhftf2", .linkage = common.linkage, .visibility = common.visibility });
|
||||
}
|
||||
|
||||
pub fn __extendhftf2(a: common.F16T) callconv(.C) f128 {
|
||||
|
@ -4,7 +4,7 @@ const extend_f80 = @import("./extendf.zig").extend_f80;
|
||||
pub const panic = common.panic;
|
||||
|
||||
comptime {
|
||||
@export(__extendhfxf2, .{ .name = "__extendhfxf2", .linkage = common.linkage });
|
||||
@export(__extendhfxf2, .{ .name = "__extendhfxf2", .linkage = common.linkage, .visibility = common.visibility });
|
||||
}
|
||||
|
||||
fn __extendhfxf2(a: common.F16T) callconv(.C) f80 {
|
||||
|
@ -5,9 +5,9 @@ pub const panic = common.panic;
|
||||
|
||||
comptime {
|
||||
if (common.want_aeabi) {
|
||||
@export(__aeabi_f2d, .{ .name = "__aeabi_f2d", .linkage = common.linkage });
|
||||
@export(__aeabi_f2d, .{ .name = "__aeabi_f2d", .linkage = common.linkage, .visibility = common.visibility });
|
||||
} else {
|
||||
@export(__extendsfdf2, .{ .name = "__extendsfdf2", .linkage = common.linkage });
|
||||
@export(__extendsfdf2, .{ .name = "__extendsfdf2", .linkage = common.linkage, .visibility = common.visibility });
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -5,11 +5,11 @@ pub const panic = common.panic;
|
||||
|
||||
comptime {
|
||||
if (common.want_ppc_abi) {
|
||||
@export(__extendsftf2, .{ .name = "__extendsfkf2", .linkage = common.linkage });
|
||||
@export(__extendsftf2, .{ .name = "__extendsfkf2", .linkage = common.linkage, .visibility = common.visibility });
|
||||
} else if (common.want_sparc_abi) {
|
||||
@export(_Qp_stoq, .{ .name = "_Qp_stoq", .linkage = common.linkage });
|
||||
@export(_Qp_stoq, .{ .name = "_Qp_stoq", .linkage = common.linkage, .visibility = common.visibility });
|
||||
}
|
||||
@export(__extendsftf2, .{ .name = "__extendsftf2", .linkage = common.linkage });
|
||||
@export(__extendsftf2, .{ .name = "__extendsftf2", .linkage = common.linkage, .visibility = common.visibility });
|
||||
}
|
||||
|
||||
pub fn __extendsftf2(a: f32) callconv(.C) f128 {
|
||||
|
@ -4,7 +4,7 @@ const extend_f80 = @import("./extendf.zig").extend_f80;
|
||||
pub const panic = common.panic;
|
||||
|
||||
comptime {
|
||||
@export(__extendsfxf2, .{ .name = "__extendsfxf2", .linkage = common.linkage });
|
||||
@export(__extendsfxf2, .{ .name = "__extendsfxf2", .linkage = common.linkage, .visibility = common.visibility });
|
||||
}
|
||||
|
||||
fn __extendsfxf2(a: f32) callconv(.C) f80 {
|
||||
|
@ -4,7 +4,7 @@ const common = @import("./common.zig");
|
||||
pub const panic = common.panic;
|
||||
|
||||
comptime {
|
||||
@export(__extendxftf2, .{ .name = "__extendxftf2", .linkage = common.linkage });
|
||||
@export(__extendxftf2, .{ .name = "__extendxftf2", .linkage = common.linkage, .visibility = common.visibility });
|
||||
}
|
||||
|
||||
fn __extendxftf2(a: f80) callconv(.C) f128 {
|
||||
|
@ -6,15 +6,15 @@ const common = @import("common.zig");
|
||||
pub const panic = common.panic;
|
||||
|
||||
comptime {
|
||||
@export(__fabsh, .{ .name = "__fabsh", .linkage = common.linkage });
|
||||
@export(fabsf, .{ .name = "fabsf", .linkage = common.linkage });
|
||||
@export(fabs, .{ .name = "fabs", .linkage = common.linkage });
|
||||
@export(__fabsx, .{ .name = "__fabsx", .linkage = common.linkage });
|
||||
@export(__fabsh, .{ .name = "__fabsh", .linkage = common.linkage, .visibility = common.visibility });
|
||||
@export(fabsf, .{ .name = "fabsf", .linkage = common.linkage, .visibility = common.visibility });
|
||||
@export(fabs, .{ .name = "fabs", .linkage = common.linkage, .visibility = common.visibility });
|
||||
@export(__fabsx, .{ .name = "__fabsx", .linkage = common.linkage, .visibility = common.visibility });
|
||||
if (common.want_ppc_abi) {
|
||||
@export(fabsq, .{ .name = "fabsf128", .linkage = common.linkage });
|
||||
@export(fabsq, .{ .name = "fabsf128", .linkage = common.linkage, .visibility = common.visibility });
|
||||
}
|
||||
@export(fabsq, .{ .name = "fabsq", .linkage = common.linkage });
|
||||
@export(fabsl, .{ .name = "fabsl", .linkage = common.linkage });
|
||||
@export(fabsq, .{ .name = "fabsq", .linkage = common.linkage, .visibility = common.visibility });
|
||||
@export(fabsl, .{ .name = "fabsl", .linkage = common.linkage, .visibility = common.visibility });
|
||||
}
|
||||
|
||||
pub fn __fabsh(a: f16) callconv(.C) f16 {
|
||||
|
@ -5,9 +5,9 @@ pub const panic = common.panic;
|
||||
|
||||
comptime {
|
||||
if (common.want_aeabi) {
|
||||
@export(__aeabi_d2lz, .{ .name = "__aeabi_d2lz", .linkage = common.linkage });
|
||||
@export(__aeabi_d2lz, .{ .name = "__aeabi_d2lz", .linkage = common.linkage, .visibility = common.visibility });
|
||||
} else {
|
||||
@export(__fixdfdi, .{ .name = "__fixdfdi", .linkage = common.linkage });
|
||||
@export(__fixdfdi, .{ .name = "__fixdfdi", .linkage = common.linkage, .visibility = common.visibility });
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -5,9 +5,9 @@ pub const panic = common.panic;
|
||||
|
||||
comptime {
|
||||
if (common.want_aeabi) {
|
||||
@export(__aeabi_d2iz, .{ .name = "__aeabi_d2iz", .linkage = common.linkage });
|
||||
@export(__aeabi_d2iz, .{ .name = "__aeabi_d2iz", .linkage = common.linkage, .visibility = common.visibility });
|
||||
} else {
|
||||
@export(__fixdfsi, .{ .name = "__fixdfsi", .linkage = common.linkage });
|
||||
@export(__fixdfsi, .{ .name = "__fixdfsi", .linkage = common.linkage, .visibility = common.visibility });
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -6,9 +6,9 @@ pub const panic = common.panic;
|
||||
|
||||
comptime {
|
||||
if (common.want_windows_v2u64_abi) {
|
||||
@export(__fixdfti_windows_x86_64, .{ .name = "__fixdfti", .linkage = common.linkage });
|
||||
@export(__fixdfti_windows_x86_64, .{ .name = "__fixdfti", .linkage = common.linkage, .visibility = common.visibility });
|
||||
} else {
|
||||
@export(__fixdfti, .{ .name = "__fixdfti", .linkage = common.linkage });
|
||||
@export(__fixdfti, .{ .name = "__fixdfti", .linkage = common.linkage, .visibility = common.visibility });
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -4,7 +4,7 @@ const floatToInt = @import("./float_to_int.zig").floatToInt;
|
||||
pub const panic = common.panic;
|
||||
|
||||
comptime {
|
||||
@export(__fixhfdi, .{ .name = "__fixhfdi", .linkage = common.linkage });
|
||||
@export(__fixhfdi, .{ .name = "__fixhfdi", .linkage = common.linkage, .visibility = common.visibility });
|
||||
}
|
||||
|
||||
fn __fixhfdi(a: f16) callconv(.C) i64 {
|
||||
|
@ -4,7 +4,7 @@ const floatToInt = @import("./float_to_int.zig").floatToInt;
|
||||
pub const panic = common.panic;
|
||||
|
||||
comptime {
|
||||
@export(__fixhfsi, .{ .name = "__fixhfsi", .linkage = common.linkage });
|
||||
@export(__fixhfsi, .{ .name = "__fixhfsi", .linkage = common.linkage, .visibility = common.visibility });
|
||||
}
|
||||
|
||||
fn __fixhfsi(a: f16) callconv(.C) i32 {
|
||||
|
@ -6,9 +6,9 @@ pub const panic = common.panic;
|
||||
|
||||
comptime {
|
||||
if (common.want_windows_v2u64_abi) {
|
||||
@export(__fixhfti_windows_x86_64, .{ .name = "__fixhfti", .linkage = common.linkage });
|
||||
@export(__fixhfti_windows_x86_64, .{ .name = "__fixhfti", .linkage = common.linkage, .visibility = common.visibility });
|
||||
} else {
|
||||
@export(__fixhfti, .{ .name = "__fixhfti", .linkage = common.linkage });
|
||||
@export(__fixhfti, .{ .name = "__fixhfti", .linkage = common.linkage, .visibility = common.visibility });
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -5,9 +5,9 @@ pub const panic = common.panic;
|
||||
|
||||
comptime {
|
||||
if (common.want_aeabi) {
|
||||
@export(__aeabi_f2lz, .{ .name = "__aeabi_f2lz", .linkage = common.linkage });
|
||||
@export(__aeabi_f2lz, .{ .name = "__aeabi_f2lz", .linkage = common.linkage, .visibility = common.visibility });
|
||||
} else {
|
||||
@export(__fixsfdi, .{ .name = "__fixsfdi", .linkage = common.linkage });
|
||||
@export(__fixsfdi, .{ .name = "__fixsfdi", .linkage = common.linkage, .visibility = common.visibility });
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -5,9 +5,9 @@ pub const panic = common.panic;
|
||||
|
||||
comptime {
|
||||
if (common.want_aeabi) {
|
||||
@export(__aeabi_f2iz, .{ .name = "__aeabi_f2iz", .linkage = common.linkage });
|
||||
@export(__aeabi_f2iz, .{ .name = "__aeabi_f2iz", .linkage = common.linkage, .visibility = common.visibility });
|
||||
} else {
|
||||
@export(__fixsfsi, .{ .name = "__fixsfsi", .linkage = common.linkage });
|
||||
@export(__fixsfsi, .{ .name = "__fixsfsi", .linkage = common.linkage, .visibility = common.visibility });
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -6,9 +6,9 @@ pub const panic = common.panic;
|
||||
|
||||
comptime {
|
||||
if (common.want_windows_v2u64_abi) {
|
||||
@export(__fixsfti_windows_x86_64, .{ .name = "__fixsfti", .linkage = common.linkage });
|
||||
@export(__fixsfti_windows_x86_64, .{ .name = "__fixsfti", .linkage = common.linkage, .visibility = common.visibility });
|
||||
} else {
|
||||
@export(__fixsfti, .{ .name = "__fixsfti", .linkage = common.linkage });
|
||||
@export(__fixsfti, .{ .name = "__fixsfti", .linkage = common.linkage, .visibility = common.visibility });
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -5,11 +5,11 @@ pub const panic = common.panic;
|
||||
|
||||
comptime {
|
||||
if (common.want_ppc_abi) {
|
||||
@export(__fixtfdi, .{ .name = "__fixkfdi", .linkage = common.linkage });
|
||||
@export(__fixtfdi, .{ .name = "__fixkfdi", .linkage = common.linkage, .visibility = common.visibility });
|
||||
} else if (common.want_sparc_abi) {
|
||||
@export(_Qp_qtox, .{ .name = "_Qp_qtox", .linkage = common.linkage });
|
||||
@export(_Qp_qtox, .{ .name = "_Qp_qtox", .linkage = common.linkage, .visibility = common.visibility });
|
||||
}
|
||||
@export(__fixtfdi, .{ .name = "__fixtfdi", .linkage = common.linkage });
|
||||
@export(__fixtfdi, .{ .name = "__fixtfdi", .linkage = common.linkage, .visibility = common.visibility });
|
||||
}
|
||||
|
||||
pub fn __fixtfdi(a: f128) callconv(.C) i64 {
|
||||
|
@ -5,11 +5,11 @@ pub const panic = common.panic;
|
||||
|
||||
comptime {
|
||||
if (common.want_ppc_abi) {
|
||||
@export(__fixtfsi, .{ .name = "__fixkfsi", .linkage = common.linkage });
|
||||
@export(__fixtfsi, .{ .name = "__fixkfsi", .linkage = common.linkage, .visibility = common.visibility });
|
||||
} else if (common.want_sparc_abi) {
|
||||
@export(_Qp_qtoi, .{ .name = "_Qp_qtoi", .linkage = common.linkage });
|
||||
@export(_Qp_qtoi, .{ .name = "_Qp_qtoi", .linkage = common.linkage, .visibility = common.visibility });
|
||||
}
|
||||
@export(__fixtfsi, .{ .name = "__fixtfsi", .linkage = common.linkage });
|
||||
@export(__fixtfsi, .{ .name = "__fixtfsi", .linkage = common.linkage, .visibility = common.visibility });
|
||||
}
|
||||
|
||||
pub fn __fixtfsi(a: f128) callconv(.C) i32 {
|
||||
|
@ -6,9 +6,9 @@ pub const panic = common.panic;
|
||||
|
||||
comptime {
|
||||
if (common.want_windows_v2u64_abi) {
|
||||
@export(__fixtfti_windows_x86_64, .{ .name = "__fixtfti", .linkage = common.linkage });
|
||||
@export(__fixtfti_windows_x86_64, .{ .name = "__fixtfti", .linkage = common.linkage, .visibility = common.visibility });
|
||||
} else {
|
||||
@export(__fixtfti, .{ .name = "__fixtfti", .linkage = common.linkage });
|
||||
@export(__fixtfti, .{ .name = "__fixtfti", .linkage = common.linkage, .visibility = common.visibility });
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -5,9 +5,9 @@ pub const panic = common.panic;
|
||||
|
||||
comptime {
|
||||
if (common.want_aeabi) {
|
||||
@export(__aeabi_d2ulz, .{ .name = "__aeabi_d2ulz", .linkage = common.linkage });
|
||||
@export(__aeabi_d2ulz, .{ .name = "__aeabi_d2ulz", .linkage = common.linkage, .visibility = common.visibility });
|
||||
} else {
|
||||
@export(__fixunsdfdi, .{ .name = "__fixunsdfdi", .linkage = common.linkage });
|
||||
@export(__fixunsdfdi, .{ .name = "__fixunsdfdi", .linkage = common.linkage, .visibility = common.visibility });
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -5,9 +5,9 @@ pub const panic = common.panic;
|
||||
|
||||
comptime {
|
||||
if (common.want_aeabi) {
|
||||
@export(__aeabi_d2uiz, .{ .name = "__aeabi_d2uiz", .linkage = common.linkage });
|
||||
@export(__aeabi_d2uiz, .{ .name = "__aeabi_d2uiz", .linkage = common.linkage, .visibility = common.visibility });
|
||||
} else {
|
||||
@export(__fixunsdfsi, .{ .name = "__fixunsdfsi", .linkage = common.linkage });
|
||||
@export(__fixunsdfsi, .{ .name = "__fixunsdfsi", .linkage = common.linkage, .visibility = common.visibility });
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -6,9 +6,9 @@ pub const panic = common.panic;
|
||||
|
||||
comptime {
|
||||
if (common.want_windows_v2u64_abi) {
|
||||
@export(__fixunsdfti_windows_x86_64, .{ .name = "__fixunsdfti", .linkage = common.linkage });
|
||||
@export(__fixunsdfti_windows_x86_64, .{ .name = "__fixunsdfti", .linkage = common.linkage, .visibility = common.visibility });
|
||||
} else {
|
||||
@export(__fixunsdfti, .{ .name = "__fixunsdfti", .linkage = common.linkage });
|
||||
@export(__fixunsdfti, .{ .name = "__fixunsdfti", .linkage = common.linkage, .visibility = common.visibility });
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -4,7 +4,7 @@ const floatToInt = @import("./float_to_int.zig").floatToInt;
|
||||
pub const panic = common.panic;
|
||||
|
||||
comptime {
|
||||
@export(__fixunshfdi, .{ .name = "__fixunshfdi", .linkage = common.linkage });
|
||||
@export(__fixunshfdi, .{ .name = "__fixunshfdi", .linkage = common.linkage, .visibility = common.visibility });
|
||||
}
|
||||
|
||||
fn __fixunshfdi(a: f16) callconv(.C) u64 {
|
||||
|
@ -4,7 +4,7 @@ const floatToInt = @import("./float_to_int.zig").floatToInt;
|
||||
pub const panic = common.panic;
|
||||
|
||||
comptime {
|
||||
@export(__fixunshfsi, .{ .name = "__fixunshfsi", .linkage = common.linkage });
|
||||
@export(__fixunshfsi, .{ .name = "__fixunshfsi", .linkage = common.linkage, .visibility = common.visibility });
|
||||
}
|
||||
|
||||
fn __fixunshfsi(a: f16) callconv(.C) u32 {
|
||||
|
@ -6,9 +6,9 @@ pub const panic = common.panic;
|
||||
|
||||
comptime {
|
||||
if (common.want_windows_v2u64_abi) {
|
||||
@export(__fixunshfti_windows_x86_64, .{ .name = "__fixunshfti", .linkage = common.linkage });
|
||||
@export(__fixunshfti_windows_x86_64, .{ .name = "__fixunshfti", .linkage = common.linkage, .visibility = common.visibility });
|
||||
} else {
|
||||
@export(__fixunshfti, .{ .name = "__fixunshfti", .linkage = common.linkage });
|
||||
@export(__fixunshfti, .{ .name = "__fixunshfti", .linkage = common.linkage, .visibility = common.visibility });
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -5,9 +5,9 @@ pub const panic = common.panic;
|
||||
|
||||
comptime {
|
||||
if (common.want_aeabi) {
|
||||
@export(__aeabi_f2ulz, .{ .name = "__aeabi_f2ulz", .linkage = common.linkage });
|
||||
@export(__aeabi_f2ulz, .{ .name = "__aeabi_f2ulz", .linkage = common.linkage, .visibility = common.visibility });
|
||||
} else {
|
||||
@export(__fixunssfdi, .{ .name = "__fixunssfdi", .linkage = common.linkage });
|
||||
@export(__fixunssfdi, .{ .name = "__fixunssfdi", .linkage = common.linkage, .visibility = common.visibility });
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -5,9 +5,9 @@ pub const panic = common.panic;
|
||||
|
||||
comptime {
|
||||
if (common.want_aeabi) {
|
||||
@export(__aeabi_f2uiz, .{ .name = "__aeabi_f2uiz", .linkage = common.linkage });
|
||||
@export(__aeabi_f2uiz, .{ .name = "__aeabi_f2uiz", .linkage = common.linkage, .visibility = common.visibility });
|
||||
} else {
|
||||
@export(__fixunssfsi, .{ .name = "__fixunssfsi", .linkage = common.linkage });
|
||||
@export(__fixunssfsi, .{ .name = "__fixunssfsi", .linkage = common.linkage, .visibility = common.visibility });
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -6,9 +6,9 @@ pub const panic = common.panic;
|
||||
|
||||
comptime {
|
||||
if (common.want_windows_v2u64_abi) {
|
||||
@export(__fixunssfti_windows_x86_64, .{ .name = "__fixunssfti", .linkage = common.linkage });
|
||||
@export(__fixunssfti_windows_x86_64, .{ .name = "__fixunssfti", .linkage = common.linkage, .visibility = common.visibility });
|
||||
} else {
|
||||
@export(__fixunssfti, .{ .name = "__fixunssfti", .linkage = common.linkage });
|
||||
@export(__fixunssfti, .{ .name = "__fixunssfti", .linkage = common.linkage, .visibility = common.visibility });
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -5,11 +5,11 @@ pub const panic = common.panic;
|
||||
|
||||
comptime {
|
||||
if (common.want_ppc_abi) {
|
||||
@export(__fixunstfdi, .{ .name = "__fixunskfdi", .linkage = common.linkage });
|
||||
@export(__fixunstfdi, .{ .name = "__fixunskfdi", .linkage = common.linkage, .visibility = common.visibility });
|
||||
} else if (common.want_sparc_abi) {
|
||||
@export(_Qp_qtoux, .{ .name = "_Qp_qtoux", .linkage = common.linkage });
|
||||
@export(_Qp_qtoux, .{ .name = "_Qp_qtoux", .linkage = common.linkage, .visibility = common.visibility });
|
||||
}
|
||||
@export(__fixunstfdi, .{ .name = "__fixunstfdi", .linkage = common.linkage });
|
||||
@export(__fixunstfdi, .{ .name = "__fixunstfdi", .linkage = common.linkage, .visibility = common.visibility });
|
||||
}
|
||||
|
||||
pub fn __fixunstfdi(a: f128) callconv(.C) u64 {
|
||||
|
@ -5,11 +5,11 @@ pub const panic = common.panic;
|
||||
|
||||
comptime {
|
||||
if (common.want_ppc_abi) {
|
||||
@export(__fixunstfsi, .{ .name = "__fixunskfsi", .linkage = common.linkage });
|
||||
@export(__fixunstfsi, .{ .name = "__fixunskfsi", .linkage = common.linkage, .visibility = common.visibility });
|
||||
} else if (common.want_sparc_abi) {
|
||||
@export(_Qp_qtoui, .{ .name = "_Qp_qtoui", .linkage = common.linkage });
|
||||
@export(_Qp_qtoui, .{ .name = "_Qp_qtoui", .linkage = common.linkage, .visibility = common.visibility });
|
||||
}
|
||||
@export(__fixunstfsi, .{ .name = "__fixunstfsi", .linkage = common.linkage });
|
||||
@export(__fixunstfsi, .{ .name = "__fixunstfsi", .linkage = common.linkage, .visibility = common.visibility });
|
||||
}
|
||||
|
||||
pub fn __fixunstfsi(a: f128) callconv(.C) u32 {
|
||||
|
@ -6,9 +6,9 @@ pub const panic = common.panic;
|
||||
|
||||
comptime {
|
||||
if (common.want_windows_v2u64_abi) {
|
||||
@export(__fixunstfti_windows_x86_64, .{ .name = "__fixunstfti", .linkage = common.linkage });
|
||||
@export(__fixunstfti_windows_x86_64, .{ .name = "__fixunstfti", .linkage = common.linkage, .visibility = common.visibility });
|
||||
} else {
|
||||
@export(__fixunstfti, .{ .name = "__fixunstfti", .linkage = common.linkage });
|
||||
@export(__fixunstfti, .{ .name = "__fixunstfti", .linkage = common.linkage, .visibility = common.visibility });
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -4,7 +4,7 @@ const floatToInt = @import("./float_to_int.zig").floatToInt;
|
||||
pub const panic = common.panic;
|
||||
|
||||
comptime {
|
||||
@export(__fixunsxfdi, .{ .name = "__fixunsxfdi", .linkage = common.linkage });
|
||||
@export(__fixunsxfdi, .{ .name = "__fixunsxfdi", .linkage = common.linkage, .visibility = common.visibility });
|
||||
}
|
||||
|
||||
fn __fixunsxfdi(a: f80) callconv(.C) u64 {
|
||||
|
@ -4,7 +4,7 @@ const floatToInt = @import("./float_to_int.zig").floatToInt;
|
||||
pub const panic = common.panic;
|
||||
|
||||
comptime {
|
||||
@export(__fixunsxfsi, .{ .name = "__fixunsxfsi", .linkage = common.linkage });
|
||||
@export(__fixunsxfsi, .{ .name = "__fixunsxfsi", .linkage = common.linkage, .visibility = common.visibility });
|
||||
}
|
||||
|
||||
fn __fixunsxfsi(a: f80) callconv(.C) u32 {
|
||||
|
@ -6,9 +6,9 @@ pub const panic = common.panic;
|
||||
|
||||
comptime {
|
||||
if (common.want_windows_v2u64_abi) {
|
||||
@export(__fixunsxfti_windows_x86_64, .{ .name = "__fixunsxfti", .linkage = common.linkage });
|
||||
@export(__fixunsxfti_windows_x86_64, .{ .name = "__fixunsxfti", .linkage = common.linkage, .visibility = common.visibility });
|
||||
} else {
|
||||
@export(__fixunsxfti, .{ .name = "__fixunsxfti", .linkage = common.linkage });
|
||||
@export(__fixunsxfti, .{ .name = "__fixunsxfti", .linkage = common.linkage, .visibility = common.visibility });
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -4,7 +4,7 @@ const floatToInt = @import("./float_to_int.zig").floatToInt;
|
||||
pub const panic = common.panic;
|
||||
|
||||
comptime {
|
||||
@export(__fixxfdi, .{ .name = "__fixxfdi", .linkage = common.linkage });
|
||||
@export(__fixxfdi, .{ .name = "__fixxfdi", .linkage = common.linkage, .visibility = common.visibility });
|
||||
}
|
||||
|
||||
fn __fixxfdi(a: f80) callconv(.C) i64 {
|
||||
|
@ -4,7 +4,7 @@ const floatToInt = @import("./float_to_int.zig").floatToInt;
|
||||
pub const panic = common.panic;
|
||||
|
||||
comptime {
|
||||
@export(__fixxfsi, .{ .name = "__fixxfsi", .linkage = common.linkage });
|
||||
@export(__fixxfsi, .{ .name = "__fixxfsi", .linkage = common.linkage, .visibility = common.visibility });
|
||||
}
|
||||
|
||||
fn __fixxfsi(a: f80) callconv(.C) i32 {
|
||||
|
@ -6,9 +6,9 @@ pub const panic = common.panic;
|
||||
|
||||
comptime {
|
||||
if (common.want_windows_v2u64_abi) {
|
||||
@export(__fixxfti_windows_x86_64, .{ .name = "__fixxfti", .linkage = common.linkage });
|
||||
@export(__fixxfti_windows_x86_64, .{ .name = "__fixxfti", .linkage = common.linkage, .visibility = common.visibility });
|
||||
} else {
|
||||
@export(__fixxfti, .{ .name = "__fixxfti", .linkage = common.linkage });
|
||||
@export(__fixxfti, .{ .name = "__fixxfti", .linkage = common.linkage, .visibility = common.visibility });
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -5,9 +5,9 @@ pub const panic = common.panic;
|
||||
|
||||
comptime {
|
||||
if (common.want_aeabi) {
|
||||
@export(__aeabi_l2d, .{ .name = "__aeabi_l2d", .linkage = common.linkage });
|
||||
@export(__aeabi_l2d, .{ .name = "__aeabi_l2d", .linkage = common.linkage, .visibility = common.visibility });
|
||||
} else {
|
||||
@export(__floatdidf, .{ .name = "__floatdidf", .linkage = common.linkage });
|
||||
@export(__floatdidf, .{ .name = "__floatdidf", .linkage = common.linkage, .visibility = common.visibility });
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -4,7 +4,7 @@ const intToFloat = @import("./int_to_float.zig").intToFloat;
|
||||
pub const panic = common.panic;
|
||||
|
||||
comptime {
|
||||
@export(__floatdihf, .{ .name = "__floatdihf", .linkage = common.linkage });
|
||||
@export(__floatdihf, .{ .name = "__floatdihf", .linkage = common.linkage, .visibility = common.visibility });
|
||||
}
|
||||
|
||||
fn __floatdihf(a: i64) callconv(.C) f16 {
|
||||
|
@ -5,9 +5,9 @@ pub const panic = common.panic;
|
||||
|
||||
comptime {
|
||||
if (common.want_aeabi) {
|
||||
@export(__aeabi_l2f, .{ .name = "__aeabi_l2f", .linkage = common.linkage });
|
||||
@export(__aeabi_l2f, .{ .name = "__aeabi_l2f", .linkage = common.linkage, .visibility = common.visibility });
|
||||
} else {
|
||||
@export(__floatdisf, .{ .name = "__floatdisf", .linkage = common.linkage });
|
||||
@export(__floatdisf, .{ .name = "__floatdisf", .linkage = common.linkage, .visibility = common.visibility });
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -5,11 +5,11 @@ pub const panic = common.panic;
|
||||
|
||||
comptime {
|
||||
if (common.want_ppc_abi) {
|
||||
@export(__floatditf, .{ .name = "__floatdikf", .linkage = common.linkage });
|
||||
@export(__floatditf, .{ .name = "__floatdikf", .linkage = common.linkage, .visibility = common.visibility });
|
||||
} else if (common.want_sparc_abi) {
|
||||
@export(_Qp_xtoq, .{ .name = "_Qp_xtoq", .linkage = common.linkage });
|
||||
@export(_Qp_xtoq, .{ .name = "_Qp_xtoq", .linkage = common.linkage, .visibility = common.visibility });
|
||||
}
|
||||
@export(__floatditf, .{ .name = "__floatditf", .linkage = common.linkage });
|
||||
@export(__floatditf, .{ .name = "__floatditf", .linkage = common.linkage, .visibility = common.visibility });
|
||||
}
|
||||
|
||||
pub fn __floatditf(a: i64) callconv(.C) f128 {
|
||||
|
@ -4,7 +4,7 @@ const intToFloat = @import("./int_to_float.zig").intToFloat;
|
||||
pub const panic = common.panic;
|
||||
|
||||
comptime {
|
||||
@export(__floatdixf, .{ .name = "__floatdixf", .linkage = common.linkage });
|
||||
@export(__floatdixf, .{ .name = "__floatdixf", .linkage = common.linkage, .visibility = common.visibility });
|
||||
}
|
||||
|
||||
fn __floatdixf(a: i64) callconv(.C) f80 {
|
||||
|
@ -5,9 +5,9 @@ pub const panic = common.panic;
|
||||
|
||||
comptime {
|
||||
if (common.want_aeabi) {
|
||||
@export(__aeabi_i2d, .{ .name = "__aeabi_i2d", .linkage = common.linkage });
|
||||
@export(__aeabi_i2d, .{ .name = "__aeabi_i2d", .linkage = common.linkage, .visibility = common.visibility });
|
||||
} else {
|
||||
@export(__floatsidf, .{ .name = "__floatsidf", .linkage = common.linkage });
|
||||
@export(__floatsidf, .{ .name = "__floatsidf", .linkage = common.linkage, .visibility = common.visibility });
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -4,7 +4,7 @@ const intToFloat = @import("./int_to_float.zig").intToFloat;
|
||||
pub const panic = common.panic;
|
||||
|
||||
comptime {
|
||||
@export(__floatsihf, .{ .name = "__floatsihf", .linkage = common.linkage });
|
||||
@export(__floatsihf, .{ .name = "__floatsihf", .linkage = common.linkage, .visibility = common.visibility });
|
||||
}
|
||||
|
||||
fn __floatsihf(a: i32) callconv(.C) f16 {
|
||||
|
@ -5,9 +5,9 @@ pub const panic = common.panic;
|
||||
|
||||
comptime {
|
||||
if (common.want_aeabi) {
|
||||
@export(__aeabi_i2f, .{ .name = "__aeabi_i2f", .linkage = common.linkage });
|
||||
@export(__aeabi_i2f, .{ .name = "__aeabi_i2f", .linkage = common.linkage, .visibility = common.visibility });
|
||||
} else {
|
||||
@export(__floatsisf, .{ .name = "__floatsisf", .linkage = common.linkage });
|
||||
@export(__floatsisf, .{ .name = "__floatsisf", .linkage = common.linkage, .visibility = common.visibility });
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -5,11 +5,11 @@ pub const panic = common.panic;
|
||||
|
||||
comptime {
|
||||
if (common.want_ppc_abi) {
|
||||
@export(__floatsitf, .{ .name = "__floatsikf", .linkage = common.linkage });
|
||||
@export(__floatsitf, .{ .name = "__floatsikf", .linkage = common.linkage, .visibility = common.visibility });
|
||||
} else if (common.want_sparc_abi) {
|
||||
@export(_Qp_itoq, .{ .name = "_Qp_itoq", .linkage = common.linkage });
|
||||
@export(_Qp_itoq, .{ .name = "_Qp_itoq", .linkage = common.linkage, .visibility = common.visibility });
|
||||
}
|
||||
@export(__floatsitf, .{ .name = "__floatsitf", .linkage = common.linkage });
|
||||
@export(__floatsitf, .{ .name = "__floatsitf", .linkage = common.linkage, .visibility = common.visibility });
|
||||
}
|
||||
|
||||
pub fn __floatsitf(a: i32) callconv(.C) f128 {
|
||||
|
@ -4,7 +4,7 @@ const intToFloat = @import("./int_to_float.zig").intToFloat;
|
||||
pub const panic = common.panic;
|
||||
|
||||
comptime {
|
||||
@export(__floatsixf, .{ .name = "__floatsixf", .linkage = common.linkage });
|
||||
@export(__floatsixf, .{ .name = "__floatsixf", .linkage = common.linkage, .visibility = common.visibility });
|
||||
}
|
||||
|
||||
fn __floatsixf(a: i32) callconv(.C) f80 {
|
||||
|
@ -6,9 +6,9 @@ pub const panic = common.panic;
|
||||
|
||||
comptime {
|
||||
if (common.want_windows_v2u64_abi) {
|
||||
@export(__floattidf_windows_x86_64, .{ .name = "__floattidf", .linkage = common.linkage });
|
||||
@export(__floattidf_windows_x86_64, .{ .name = "__floattidf", .linkage = common.linkage, .visibility = common.visibility });
|
||||
} else {
|
||||
@export(__floattidf, .{ .name = "__floattidf", .linkage = common.linkage });
|
||||
@export(__floattidf, .{ .name = "__floattidf", .linkage = common.linkage, .visibility = common.visibility });
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -6,9 +6,9 @@ pub const panic = common.panic;
|
||||
|
||||
comptime {
|
||||
if (common.want_windows_v2u64_abi) {
|
||||
@export(__floattihf_windows_x86_64, .{ .name = "__floattihf", .linkage = common.linkage });
|
||||
@export(__floattihf_windows_x86_64, .{ .name = "__floattihf", .linkage = common.linkage, .visibility = common.visibility });
|
||||
} else {
|
||||
@export(__floattihf, .{ .name = "__floattihf", .linkage = common.linkage });
|
||||
@export(__floattihf, .{ .name = "__floattihf", .linkage = common.linkage, .visibility = common.visibility });
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -6,9 +6,9 @@ pub const panic = common.panic;
|
||||
|
||||
comptime {
|
||||
if (common.want_windows_v2u64_abi) {
|
||||
@export(__floattisf_windows_x86_64, .{ .name = "__floattisf", .linkage = common.linkage });
|
||||
@export(__floattisf_windows_x86_64, .{ .name = "__floattisf", .linkage = common.linkage, .visibility = common.visibility });
|
||||
} else {
|
||||
@export(__floattisf, .{ .name = "__floattisf", .linkage = common.linkage });
|
||||
@export(__floattisf, .{ .name = "__floattisf", .linkage = common.linkage, .visibility = common.visibility });
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -6,9 +6,9 @@ pub const panic = common.panic;
|
||||
|
||||
comptime {
|
||||
if (common.want_windows_v2u64_abi) {
|
||||
@export(__floattitf_windows_x86_64, .{ .name = "__floattitf", .linkage = common.linkage });
|
||||
@export(__floattitf_windows_x86_64, .{ .name = "__floattitf", .linkage = common.linkage, .visibility = common.visibility });
|
||||
} else {
|
||||
@export(__floattitf, .{ .name = "__floattitf", .linkage = common.linkage });
|
||||
@export(__floattitf, .{ .name = "__floattitf", .linkage = common.linkage, .visibility = common.visibility });
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -6,9 +6,9 @@ pub const panic = common.panic;
|
||||
|
||||
comptime {
|
||||
if (common.want_windows_v2u64_abi) {
|
||||
@export(__floattixf_windows_x86_64, .{ .name = "__floattixf", .linkage = common.linkage });
|
||||
@export(__floattixf_windows_x86_64, .{ .name = "__floattixf", .linkage = common.linkage, .visibility = common.visibility });
|
||||
} else {
|
||||
@export(__floattixf, .{ .name = "__floattixf", .linkage = common.linkage });
|
||||
@export(__floattixf, .{ .name = "__floattixf", .linkage = common.linkage, .visibility = common.visibility });
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -5,9 +5,9 @@ pub const panic = common.panic;
|
||||
|
||||
comptime {
|
||||
if (common.want_aeabi) {
|
||||
@export(__aeabi_ul2d, .{ .name = "__aeabi_ul2d", .linkage = common.linkage });
|
||||
@export(__aeabi_ul2d, .{ .name = "__aeabi_ul2d", .linkage = common.linkage, .visibility = common.visibility });
|
||||
} else {
|
||||
@export(__floatundidf, .{ .name = "__floatundidf", .linkage = common.linkage });
|
||||
@export(__floatundidf, .{ .name = "__floatundidf", .linkage = common.linkage, .visibility = common.visibility });
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -4,7 +4,7 @@ const intToFloat = @import("./int_to_float.zig").intToFloat;
|
||||
pub const panic = common.panic;
|
||||
|
||||
comptime {
|
||||
@export(__floatundihf, .{ .name = "__floatundihf", .linkage = common.linkage });
|
||||
@export(__floatundihf, .{ .name = "__floatundihf", .linkage = common.linkage, .visibility = common.visibility });
|
||||
}
|
||||
|
||||
fn __floatundihf(a: u64) callconv(.C) f16 {
|
||||
|
@ -5,9 +5,9 @@ pub const panic = common.panic;
|
||||
|
||||
comptime {
|
||||
if (common.want_aeabi) {
|
||||
@export(__aeabi_ul2f, .{ .name = "__aeabi_ul2f", .linkage = common.linkage });
|
||||
@export(__aeabi_ul2f, .{ .name = "__aeabi_ul2f", .linkage = common.linkage, .visibility = common.visibility });
|
||||
} else {
|
||||
@export(__floatundisf, .{ .name = "__floatundisf", .linkage = common.linkage });
|
||||
@export(__floatundisf, .{ .name = "__floatundisf", .linkage = common.linkage, .visibility = common.visibility });
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -5,11 +5,11 @@ pub const panic = common.panic;
|
||||
|
||||
comptime {
|
||||
if (common.want_ppc_abi) {
|
||||
@export(__floatunditf, .{ .name = "__floatundikf", .linkage = common.linkage });
|
||||
@export(__floatunditf, .{ .name = "__floatundikf", .linkage = common.linkage, .visibility = common.visibility });
|
||||
} else if (common.want_sparc_abi) {
|
||||
@export(_Qp_uxtoq, .{ .name = "_Qp_uxtoq", .linkage = common.linkage });
|
||||
@export(_Qp_uxtoq, .{ .name = "_Qp_uxtoq", .linkage = common.linkage, .visibility = common.visibility });
|
||||
}
|
||||
@export(__floatunditf, .{ .name = "__floatunditf", .linkage = common.linkage });
|
||||
@export(__floatunditf, .{ .name = "__floatunditf", .linkage = common.linkage, .visibility = common.visibility });
|
||||
}
|
||||
|
||||
pub fn __floatunditf(a: u64) callconv(.C) f128 {
|
||||
|
@ -4,7 +4,7 @@ const intToFloat = @import("./int_to_float.zig").intToFloat;
|
||||
pub const panic = common.panic;
|
||||
|
||||
comptime {
|
||||
@export(__floatundixf, .{ .name = "__floatundixf", .linkage = common.linkage });
|
||||
@export(__floatundixf, .{ .name = "__floatundixf", .linkage = common.linkage, .visibility = common.visibility });
|
||||
}
|
||||
|
||||
fn __floatundixf(a: u64) callconv(.C) f80 {
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user