tiny.simd.combineShiftRightLanes
Defined in block.
Source
Source: lib/simd/src/block.zig:78
zig
pub fn combineShiftRightLanes( comptime D: type, comptime amount: usize, high: D.Vector, low: D.Vector,) D.Vector { const lanes_per_block = comptime blockLanes(D); if (comptime amount >= lanes_per_block) @compileError("combined lane shift must remain inside a block"); const high_lanes: [D.lane_count]D.Lane = @bitCast(high); const low_lanes: [D.lane_count]D.Lane = @bitCast(low); var result: [D.lane_count]D.Lane = undefined; inline for (0..D.lane_count) |index| { const base = index / lanes_per_block * lanes_per_block; const source = index % lanes_per_block + amount; result[index] = if (source < lanes_per_block) low_lanes[base + source] else high_lanes[base + source - lanes_per_block]; } return @bitCast(result);}Source: lib/simd/src/root.zig:853
zig
pub const combineShiftRightLanes = block.combineShiftRightLanes;Audit
| Definitions | 1 |
|---|---|
| Public names | 2 |
| Members | 0 |
| Version | 26.7.0 |
| Revision | daab053ee433 |