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.

jump

Xoshiro256.jump
pub fn jump(self: *Xoshiro256) void

File

lib/std/Random/Xoshiro256.zig:42

Code

pub fn jump(self: *Xoshiro256) void {
    var s: u256 = 0;

    var table: u256 = 0x39abdc4529b1661ca9582618e03fc9aad5a61266f0c9392c180ec6d33cfd0aba;

    while (table != 0) : (table >>= 1) {
        if (@as(u1, @truncate(table)) != 0) {
            s ^= @bitCast(self.s);
        }
        _ = self.next();
    }

    self.s = @bitCast(s);
}