tiny.simd.highestSetBitIndex
Defined in count.
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
| Definitions | 1 |
|---|---|
| Public names | 2 |
| Members | 0 |
| Version | 26.7.0 |
| Revision | daab053ee433 |