Skip to documentation
SLOP

tiny.simd.PhastConfig

Reference tiny.simd PhastConfig

Defined in tiny.simd.

API (7)

Actions

Public operations.

Fields and members

Public fields and members.

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

Source

Source: lib/simd/src/phast/family.zig:42

zig
pub const Config = struct {    num_slots: usize = 0,    hash_key: u32 = 0,    bucket_mask: u32 = 0,    placement: Placement = .{},    pub fn numBuckets(self: Config) usize {        return @as(usize, self.bucket_mask) + 1;    }    pub fn allocatedBytes(self: Config, payload_bytes: usize) PhastError!usize {        const payload = std.math.mul(usize, self.num_slots, payload_bytes) catch            return error.CapacityExceeded;        const seed_bytes = std.mem.alignForward(usize, self.numBuckets(), @sizeOf(u32));        return std.math.add(usize, payload, seed_bytes) catch            return error.CapacityExceeded;    }    pub fn seedWordsLen(self: Config) usize {        return seedWordLength(self.numBuckets());    }};

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

zig
pub const PhastConfig = phast.PhastConfig;
Called byCallsPhastDataallocatedBytesPhastConfignumBucketsPhastConfigallocatedBytes
Static calls · unresolved targets: 0 · external targets: 0.
Called byCallsNo direct callsprivate sourcelib.simd.src.phast.builder.BuildermaybeBuildprivate sourcelib.simd.src.phast.builder.BuilderpopulateBucketsPhastConfigallocatedBytesPhastConfigseedWordsLenPhastConfignumBuckets
Static calls · unresolved targets: 0 · external targets: 0.
Called byCallsNo direct callersPhastConfignumBucketsprivate sourcelib.simd.src.phast.familyseedWordLengthPhastConfigseedWordsLen
Static calls · unresolved targets: 0 · external targets: 0.

Also reachable as

phast.PhastConfig.

Audit

Definitions4
Public names8
Members4
Version26.7.0
Revisiondaab053ee433