Zig 0.17.0-dev (Split by item)

This is an example of documentation generated by ZigDoc, an alternative to Zig's built-in Auto Doc feature. See also examples in other modes/formats. The project being documented here (as the example) is the Zig library itself.

__atomic_store

atomics.__atomic_store
fn __atomic_store(size: u32, dest: [*]u8, src: [*]u8, model: i32) callconv(.c) void

File

lib/compiler_rt/atomics.zig:125

Code

fn __atomic_store(size: u32, dest: [*]u8, src: [*]u8, model: i32) callconv(.c) void {
    _ = model;
    var sl = spinlocks.get(@intFromPtr(dest));
    defer sl.release();
    @memcpy(dest[0..size], src);
}