tiny.simd.extractBlock
Defined in block.
Source
Source: lib/simd/src/block.zig:159
zig
pub fn extractBlock( comptime D: type, comptime block_index: usize, value: D.Vector,) @Vector(blockLanes(D), D.Lane) { const block_count = comptime blocks(D); if (comptime block_index >= block_count) @compileError("block index is outside the vector"); const lanes_per_block = comptime blockLanes(D); const lanes: [D.lane_count]D.Lane = @bitCast(value); var result: [lanes_per_block]D.Lane = undefined; inline for (0..lanes_per_block) |lane| { result[lane] = lanes[block_index * lanes_per_block + lane]; } return @bitCast(result);}Source: lib/simd/src/root.zig:862
zig
pub const extractBlock = block.extractBlock;Audit
| Definitions | 1 |
|---|---|
| Public names | 2 |
| Members | 0 |
| Version | 26.7.0 |
| Revision | daab053ee433 |