Skip to documentation
SLOP

tiny.simd.highestSetBitIndex

Reference tiny.simd highestSetBitIndex

Defined in count.

Called byCallsprivate sourcelib.simd.src.countverifyCountsprivate sourcelib.simd.src.testverifyWideCountOracleprivate sourcelib.simd.src.countUnsignedVectorprivate sourcelib.simd.src.countvalidatecounthighestSetBitIndex
Static calls · unresolved targets: 0 · external targets: 0.

Source

Source: lib/simd/src/count.zig:35

zig
pub fn highestSetBitIndex(comptime D: type, value: D.Vector) D.Vector {    validate(D);    const U = UnsignedVector(D);    const bits: U = @bitCast(value);    const top: U = @splat(@bitSizeOf(D.Lane) - 1);    const leading: U = @intCast(@clz(bits));    return @bitCast(top -% leading);}

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

zig
pub const highestSetBitIndex = count.highestSetBitIndex;

Audit

Definitions1
Public names2
Members0
Version26.7.0
Revisiondaab053ee433