Skip to documentation
SLOP

tiny.simd.findLastTrue

Reference tiny.simd findLastTrue

Defined in compare.

Returns the highest true lane, or -1 when no lane is true, by a maximum reduction over the selected lane indices.

Called byCallsNo direct callscomparefindKnownLastTruetest sourcelib.simd.src.comparetest: Highway mask searches and first...comparefindLastTrue
Static calls · unresolved targets: 0 · external targets: 0.

Source

Source: lib/simd/src/compare.zig:180

zig
/// Returns the highest true lane, or -1 when no lane is true, by a maximum/// reduction over the selected lane indices.pub fn findLastTrue(comptime D: type, mask: D.Mask) isize {    const index = std.simd.lastTrue(mask) orelse return -1;    return @intCast(index);}

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

zig
pub const findLastTrue = compare.findLastTrue;

Audit

Definitions1
Public names2
Members0
Version26.7.0
Revisiondaab053ee433