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 standard library.
std › Random › Isaac64 › refill Private Function refill Doc Source Private Function std.Random.Isaac64.refill
fn refill (self : *Isaac64 ) void Params File Random/Isaac64.zig: 47
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74 fn refill (self : *Isaac64 ) void {
const midpoint = self .r .len / 2 ;
self .c +%= 1 ;
self .b +%= self .c ;
{
var i : usize = 0 ;
while (i < midpoint ) : (i += 4 ) {
self .step (~(self .a ^ (self .a << 21 )), i + 0 , 0 , midpoint );
self .step (self .a ^ (self .a >> 5 ), i + 1 , 0 , midpoint );
self .step (self .a ^ (self .a << 12 ), i + 2 , 0 , midpoint );
self .step (self .a ^ (self .a >> 33 ), i + 3 , 0 , midpoint );
}
}
{
var i : usize = 0 ;
while (i < midpoint ) : (i += 4 ) {
self .step (~(self .a ^ (self .a << 21 )), i + 0 , midpoint , 0 );
self .step (self .a ^ (self .a >> 5 ), i + 1 , midpoint , 0 );
self .step (self .a ^ (self .a << 12 ), i + 2 , midpoint , 0 );
self .step (self .a ^ (self .a >> 33 ), i + 3 , midpoint , 0 );
}
}
self .i = 0 ;
}