fn constrainIndex(header: IndexHeader, i: usize) usize header: IndexHeaderi: usize1649
1650
1651
1652
1653 fn constrainIndex(header: IndexHeader, i: usize) usize {
// This is an optimization for modulo of power of two integers;
// it requires `indexes_len` to always be a power of two.
return @as(usize, @intCast(i & header.mask()));
}
Map from an incrementing index to an index slot in the attached arrays.