Vector¶
Import: import system.simd;
Read the usage guide for examples and common tasks. This reference lists the public declarations for this part of the library. See Reading API signatures for parameter and result notation.
Vector¶
Portable 16-byte SIMD vector (v128). T must be byte, int, long, float, or double.
lane_count¶
Number of elements held by this vector type.
constructor¶
Splats value into every lane.
load¶
Loads Vector<T>.count consecutive elements from src starting at offset.
store¶
Writes this vector's lanes into dest starting at offset.
lane¶
Returns lane i (0 .. count).
with_lane¶
Returns a copy with lane i replaced by value.
min¶
Lane-wise minimum of a and b.
max¶
Lane-wise maximum of a and b.
sum¶
Horizontal sum of every lane.