Skip to documentation
SLOP

tiny.simd.combineShiftRightLanes

Reference tiny.simd combineShiftRightLanes

Defined in block.

Called byCallstest sourcelib.simd.src.blocktest: Highway block shifts zero fill ...private sourcelib.simd.src.blockverifyBlockLaneTypeprivate sourcelib.simd.src.testverifyArrangeOracleprivate sourcelib.simd.src.blockblockLanesblockcombineShiftRightLanes
Static calls · unresolved targets: 0 · external targets: 0.

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

Definitions1
Public names2
Members0
Version26.7.0
Revisiondaab053ee433