| author | |
| committer | |
| log | 98037a02384cdd9fa9c71210fb35d24b82e61f36 |
| tree | 5f1ada145e467dfb85d178efd4ec58c2466d9fe6 |
| parent | f8b779c114a5fcb82f08168912f2300d7027a2fd |
3 files changed, 10 insertions(+), 4 deletions(-)
lib/compiler_rt/atomics.zig+1-1| ... | ... | @@ -453,7 +453,7 @@ fn __atomic_fetch_nand_8(ptr: *u64, val: u64, model: i32) callconv(.C) u64 { |
| 453 | 453 | } |
| 454 | 454 | |
| 455 | 455 | comptime { |
| 456 | if (supports_atomic_ops) { | |
| 456 | if (supports_atomic_ops and builtin.object_format != .c) { | |
| 457 | 457 | @export(__atomic_load, .{ .name = "__atomic_load", .linkage = linkage }); |
| 458 | 458 | @export(__atomic_store, .{ .name = "__atomic_store", .linkage = linkage }); |
| 459 | 459 | @export(__atomic_exchange, .{ .name = "__atomic_exchange", .linkage = linkage }); |
lib/compiler_rt/memcpy.zig+4-1| ... | ... | @@ -1,8 +1,11 @@ |
| 1 | 1 | const std = @import("std"); |
| 2 | 2 | const common = @import("./common.zig"); |
| 3 | const builtin = @import("builtin"); | |
| 3 | 4 | |
| 4 | 5 | comptime { |
| 5 | @export(memcpy, .{ .name = "memcpy", .linkage = common.linkage }); | |
| 6 | if (builtin.object_format != .c) { | |
| 7 | @export(memcpy, .{ .name = "memcpy", .linkage = common.linkage }); | |
| 8 | } | |
| 6 | 9 | } |
| 7 | 10 | |
| 8 | 11 | pub fn memcpy(noalias dest: ?[*]u8, noalias src: ?[*]const u8, len: usize) callconv(.C) ?[*]u8 { |
lib/compiler_rt/memset.zig+5-2| ... | ... | @@ -1,9 +1,12 @@ |
| 1 | 1 | const std = @import("std"); |
| 2 | 2 | const common = @import("./common.zig"); |
| 3 | const builtin = @import("builtin"); | |
| 3 | 4 | |
| 4 | 5 | comptime { |
| 5 | @export(memset, .{ .name = "memset", .linkage = common.linkage }); | |
| 6 | @export(__memset, .{ .name = "__memset", .linkage = common.linkage }); | |
| 6 | if (builtin.object_format != .c) { | |
| 7 | @export(memset, .{ .name = "memset", .linkage = common.linkage }); | |
| 8 | @export(__memset, .{ .name = "__memset", .linkage = common.linkage }); | |
| 9 | } | |
| 7 | 10 | } |
| 8 | 11 | |
| 9 | 12 | pub fn memset(dest: ?[*]u8, c: u8, len: usize) callconv(.C) ?[*]u8 { |