tiny.simd.Cuckoo2x2Data
Defined in cuckoo2x2.
API (9)
Actions
Public operations.
Fields and members
Public fields and members.
Source
Source: lib/simd/src/cuckoo2x2.zig:34
zig
pub const Cuckoo2x2Data = struct { config: Cuckoo2x2Config = .{}, entries: []const u32 = &.{}, config_idx: usize = 0, attempt_idx: usize = 0, num_primary: u32 = 0, num_secondary: u32 = 0, const Self = @This(); pub fn isEmpty(self: Self) bool { return self.entries.len == 0; } pub fn numBuckets(self: Self) usize { if (self.isEmpty()) return 0; std.debug.assert(self.entries.len == self.config.numBuckets()); return self.entries.len; } pub fn allocatedBytes(self: Self) usize { return self.entries.len * @sizeOf(u32); }};Source: lib/simd/src/root.zig:612
zig
pub const Cuckoo2x2Data = cuckoo2x2.Cuckoo2x2Data;Audit
| Definitions | 4 |
|---|---|
| Public names | 8 |
| Members | 6 |
| Version | 26.7.0 |
| Revision | daab053ee433 |