| ... | @@ -88,6 +88,13 @@ fn __atomic_compare_exchange( | ... | @@ -88,6 +88,13 @@ fn __atomic_compare_exchange( |
| 88 | return 0; | 88 | return 0; |
| 89 | } | 89 | } |
| 90 | | 90 | |
| | 91 | comptime { |
| | 92 | @export(__atomic_load, .{ .name = "__atomic_load", .linkage = linkage }); |
| | 93 | @export(__atomic_store, .{ .name = "__atomic_store", .linkage = linkage }); |
| | 94 | @export(__atomic_exchange, .{ .name = "__atomic_exchange", .linkage = linkage }); |
| | 95 | @export(__atomic_compare_exchange, .{ .name = "__atomic_compare_exchange", .linkage = linkage }); |
| | 96 | } |
| | 97 | |
| 91 | // Specialized versions of the GCC atomic builtin functions. | 98 | // Specialized versions of the GCC atomic builtin functions. |
| 92 | // LLVM emits those iff the object size is known and the pointers are correctly | 99 | // LLVM emits those iff the object size is known and the pointers are correctly |
| 93 | // aligned. | 100 | // aligned. |