tiny.simd.buildCuckoo
Defined in tiny.simd.
Source
Source: lib/simd/src/cuckoo/family.zig:443
zig
pub fn buildCuckoo( scratch: []u32, slots: []u32, keys: []const u32, epsilon: f64, max_attempts: u32, algorithm: CuckooBuildAlgo, stats: ?*builder.CuckooBuildStats,) builder.CuckooBuildError!CuckooTable { return switch (algorithm) { .hopcroft_karp => blk: { const plan = try CuckooBuildPlan.inspect(keys.len, epsilon); break :blk plan.build(scratch, slots, keys, max_attempts, stats); }, .min_cost => blk: { const plan = try CuckooOptimizedBuildPlan.inspect(keys.len, epsilon); break :blk plan.build(scratch, slots, keys, max_attempts, stats); }, .local_search => blk: { const plan = try CuckooLocalBuildPlan.inspect(keys.len, epsilon); break :blk plan.build(scratch, slots, keys, max_attempts, stats); }, };}Source: lib/simd/src/root.zig:609
zig
pub const buildCuckoo = cuckoo.buildCuckoo;Also reachable as
Audit
| Definitions | 1 |
|---|---|
| Public names | 2 |
| Members | 0 |
| Version | 26.7.0 |
| Revision | daab053ee433 |