Skip to documentation
SLOP

tiny.simd.fillRandomDistinct

Reference tiny.simd fillRandomDistinct

Defined in hash.

Called byCallstest sourcelib.simd.src.hashtest: Highway distinct counter fill w...private sourcelib.simd.src.hashrequireDistinctLanehashfillRandomDistinct
Static calls · unresolved targets: 1 · external targets: 1.

Source

Source: lib/simd/src/hash.zig:260

zig
pub fn fillRandomDistinct(comptime T: type, key: u32, output: []T) void {    requireDistinctLane(T);    if (@bitSizeOf(usize) > 32) {        std.debug.assert(output.len <= @as(usize, 1) << 32);    }    const permutation = Triple32.initKey(key);    for (output, 0..) |*value, index| {        value.* = @intCast(permutation.hash(@intCast(index)));    }}

Source: lib/simd/src/root.zig:574

zig
pub const fillRandomDistinct = hash.fillRandomDistinct;

Audit

Definitions1
Public names2
Members0
Version26.7.0
Revisiondaab053ee433