Skip to documentation
SLOP

tiny.simd.Cuckoo2x2Config

Reference tiny.simd Cuckoo2x2Config

Defined in cuckoo2x2.

API (4)

Actions

Public operations.

Fields and members

Public fields and members.

No direct callersNo direct callscuckoo2x2Cuckoo2x2Config
Static calls · unresolved targets: unknown · external targets: unknown.

Source

Source: lib/simd/src/cuckoo2x2.zig:13

zig
pub const Cuckoo2x2Config = struct {    bucket_mask: u32 = 0,    hash_key: u32 = 0,    const Self = @This();    pub fn init(num_buckets: usize, hash_key: u32) Self {        std.debug.assert(num_buckets != 0);        std.debug.assert(num_buckets <= std.math.maxInt(u32));        std.debug.assert(std.math.isPowerOfTwo(num_buckets));        return .{            .bucket_mask = @intCast(num_buckets - 1),            .hash_key = hash_key,        };    }    pub fn numBuckets(self: Self) usize {        return @as(usize, self.bucket_mask) + 1;    }};

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

zig
pub const Cuckoo2x2Config = cuckoo2x2.Cuckoo2x2Config;
Called byCallsNo direct callsCuckoo2x2PlanbuildCuckoo2x2Configinit
Static calls · unresolved targets: 0 · external targets: 0.
Called byCallsNo direct callsCuckoo2x2DatanumBucketsCuckoo2x2ConfignumBuckets
Static calls · unresolved targets: 0 · external targets: 0.

Audit

Definitions3
Public names6
Members2
Version26.7.0
Revisiondaab053ee433