Skip to documentation
SLOP

tiny.simd.PhastPlacement

Reference tiny.simd PhastPlacement

Defined in tiny.simd.

API (4)

Actions

Public operations.

Fields and members

Public fields and members.

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

Source

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

zig
pub const Placement = struct {    num_slice_offsets: u32 = 0,    slice_mask: u32 = 0,    pub fn init(num_slots: usize, slice_length: usize) PhastError!Placement {        if (slice_length == 0 or !std.math.isPowerOfTwo(slice_length)) {            return error.InvalidData;        }        if (num_slots < slice_length or num_slots > std.math.maxInt(u32)) {            return error.CapacityExceeded;        }        if (slice_length > std.math.maxInt(u32)) return error.CapacityExceeded;        const num_slice_offsets = num_slots - slice_length + 1;        return .{            .num_slice_offsets = @intCast(num_slice_offsets),            .slice_mask = @intCast(slice_length - 1),        };    }    pub fn sliceLength(self: Placement) usize {        return @as(usize, self.slice_mask) + 1;    }};

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

zig
pub const PhastPlacement = phast.PhastPlacement;
Called byCallsNo direct callsprivate sourcelib.simd.src.phast.buildermakeConfigtest sourcelib.simd.src.phast.buildertest: Highway PHAST placement and dat...PhastPlacementinit
Static calls · unresolved targets: 0 · external targets: 0.

Also reachable as

phast.PhastPlacement.

Audit

Definitions3
Public names6
Members2
Version26.7.0
Revisiondaab053ee433