Skip to documentation
SLOP

tiny.simd.IndexRange

Reference tiny.simd IndexRange

Defined in thread.ranges.

API (6)

Actions

Public operations.

Fields and members

Public fields and members.

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

Source

Source: lib/simd/src/thread/range.zig:3

zig
pub const IndexRange = struct {    begin: usize = 0,    end: usize = 0,    pub fn init(begin: usize, end: usize) error{InvalidRange}!IndexRange {        if (begin >= end) return error.InvalidRange;        return .{ .begin = begin, .end = end };    }    pub fn count(self: IndexRange) usize {        std.debug.assert(self.begin <= self.end);        return self.end - self.begin;    }    pub fn contains(self: IndexRange, index: usize) bool {        return self.begin <= index and index < self.end;    }    pub fn containsRange(self: IndexRange, other: IndexRange) bool {        return other.begin >= self.begin and other.end <= self.end;    }};

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

zig
pub const IndexRange = thread.IndexRange;
Called byCallsNo direct callstest sourcelib.simd.src.thread.rangetest: Highway index ranges preserve h...IndexRangecontains
Static calls · unresolved targets: 0 · external targets: 0.
Called byCallsNo direct callstest sourcelib.simd.src.thread.rangetest: Highway index ranges preserve h...IndexRangecontainsRange
Static calls · unresolved targets: 0 · external targets: 0.
Called byCallsNo direct callstest sourcelib.simd.src.thread.rangetest: Highway index ranges preserve h...IndexRangecount
Static calls · unresolved targets: 0 · external targets: 0.
Called byCallsNo direct callstest sourcelib.simd.src.thread.rangetest: Highway index range partition r...test sourcelib.simd.src.thread.rangetest: Highway index range partitions ...test sourcelib.simd.src.thread.rangetest: Highway index ranges preserve h...IndexRangeinit
Static calls · unresolved targets: 0 · external targets: 0.

Also reachable as

thread.IndexRange.

Audit

Definitions5
Public names15
Members2
Version26.7.0
Revisiondaab053ee433