Available on
target_family="wasm"
only.Expand description
This module implements the WebAssembly SIMD128
ISA.
Re-exportsยง
pub use i16x8_load_extend_u8x8 as u16x8_load_extend_u8x8;
pub use i32x4_load_extend_u16x4 as u32x4_load_extend_u16x4;
pub use i64x2_load_extend_u32x2 as u64x2_load_extend_u32x2;
pub use i8x16_shuffle as u8x16_shuffle;
pub use i16x8_shuffle as u16x8_shuffle;
pub use i32x4_shuffle as u32x4_shuffle;
pub use i64x2_shuffle as u64x2_shuffle;
pub use i8x16_swizzle as u8x16_swizzle;
pub use i8x16_eq as u8x16_eq;
pub use i8x16_ne as u8x16_ne;
pub use i16x8_eq as u16x8_eq;
pub use i16x8_ne as u16x8_ne;
pub use i32x4_eq as u32x4_eq;
pub use i32x4_ne as u32x4_ne;
pub use i64x2_eq as u64x2_eq;
pub use i64x2_ne as u64x2_ne;
pub use i8x16_popcnt as u8x16_popcnt;
pub use i8x16_all_true as u8x16_all_true;
pub use i8x16_bitmask as u8x16_bitmask;
pub use i8x16_shl as u8x16_shl;
pub use i8x16_add as u8x16_add;
pub use i8x16_sub as u8x16_sub;
pub use i16x8_extadd_pairwise_u8x16 as u16x8_extadd_pairwise_u8x16;
pub use i16x8_all_true as u16x8_all_true;
pub use i16x8_bitmask as u16x8_bitmask;
pub use i16x8_extend_low_u8x16 as u16x8_extend_low_u8x16;
pub use i16x8_extend_high_u8x16 as u16x8_extend_high_u8x16;
pub use i16x8_shl as u16x8_shl;
pub use i16x8_add as u16x8_add;
pub use i16x8_sub as u16x8_sub;
pub use i16x8_mul as u16x8_mul;
pub use i16x8_extmul_low_u8x16 as u16x8_extmul_low_u8x16;
pub use i16x8_extmul_high_u8x16 as u16x8_extmul_high_u8x16;
pub use i32x4_extadd_pairwise_u16x8 as u32x4_extadd_pairwise_u16x8;
pub use i32x4_all_true as u32x4_all_true;
pub use i32x4_bitmask as u32x4_bitmask;
pub use i32x4_extend_low_u16x8 as u32x4_extend_low_u16x8;
pub use i32x4_extend_high_u16x8 as u32x4_extend_high_u16x8;
pub use i32x4_shl as u32x4_shl;
pub use i32x4_add as u32x4_add;
pub use i32x4_sub as u32x4_sub;
pub use i32x4_mul as u32x4_mul;
pub use i32x4_extmul_low_u16x8 as u32x4_extmul_low_u16x8;
pub use i32x4_extmul_high_u16x8 as u32x4_extmul_high_u16x8;
pub use i64x2_all_true as u64x2_all_true;
pub use i64x2_bitmask as u64x2_bitmask;
pub use i64x2_extend_low_u32x4 as u64x2_extend_low_u32x4;
pub use i64x2_extend_high_u32x4 as u64x2_extend_high_u32x4;
pub use i64x2_shl as u64x2_shl;
pub use i64x2_add as u64x2_add;
pub use i64x2_sub as u64x2_sub;
pub use i64x2_mul as u64x2_mul;
pub use i64x2_extmul_low_u32x4 as u64x2_extmul_low_u32x4;
pub use i64x2_extmul_high_u32x4 as u64x2_extmul_high_u32x4;
Macrosยง
- conversions ๐
Structsยง
Functionsยง
- f32x4โ
simd128
- Materializes a SIMD value from the provided operands.
- f32x4_
abs โsimd128
- Calculates the absolute value of each lane of a 128-bit vector interpreted as four 32-bit floating point numbers.
- f32x4_
add โsimd128
- Lane-wise addition of two 128-bit vectors interpreted as four 32-bit floating point numbers.
- f32x4_
ceil โsimd128
- Lane-wise rounding to the nearest integral value not smaller than the input.
- f32x4_
convert_ โi32x4 simd128
- Converts a 128-bit vector interpreted as four 32-bit signed integers into a 128-bit vector of four 32-bit floating point numbers.
- f32x4_
convert_ โu32x4 simd128
- Converts a 128-bit vector interpreted as four 32-bit unsigned integers into a 128-bit vector of four 32-bit floating point numbers.
- f32x4_
demote_ โf64x2_ zero simd128
- Conversion of the two double-precision floating point lanes to two lower single-precision lanes of the result. The two higher lanes of the result are initialized to zero. If the conversion result is not representable as a single-precision floating point number, it is rounded to the nearest-even representable number.
- f32x4_
div โsimd128
- Lane-wise division of two 128-bit vectors interpreted as four 32-bit floating point numbers.
- f32x4_
eq โsimd128
- Compares two 128-bit vectors as if they were two vectors of 4 thirty-two-bit floating point numbers.
- f32x4_
extract_ โlane simd128
- Extracts a lane from a 128-bit vector interpreted as 4 packed f32 numbers.
- f32x4_
floor โsimd128
- Lane-wise rounding to the nearest integral value not greater than the input.
- f32x4_
ge โsimd128
- Compares two 128-bit vectors as if they were two vectors of 4 thirty-two-bit floating point numbers.
- f32x4_
gt โsimd128
- Compares two 128-bit vectors as if they were two vectors of 4 thirty-two-bit floating point numbers.
- f32x4_
le โsimd128
- Compares two 128-bit vectors as if they were two vectors of 4 thirty-two-bit floating point numbers.
- f32x4_
lt โsimd128
- Compares two 128-bit vectors as if they were two vectors of 4 thirty-two-bit floating point numbers.
- f32x4_
max โsimd128
- Calculates the lane-wise minimum of two 128-bit vectors interpreted as four 32-bit floating point numbers.
- f32x4_
min โsimd128
- Calculates the lane-wise minimum of two 128-bit vectors interpreted as four 32-bit floating point numbers.
- f32x4_
mul โsimd128
- Lane-wise multiplication of two 128-bit vectors interpreted as four 32-bit floating point numbers.
- f32x4_
ne โsimd128
- Compares two 128-bit vectors as if they were two vectors of 4 thirty-two-bit floating point numbers.
- f32x4_
nearest โsimd128
- Lane-wise rounding to the nearest integral value; if two values are equally near, rounds to the even one.
- f32x4_
neg โsimd128
- Negates each lane of a 128-bit vector interpreted as four 32-bit floating point numbers.
- f32x4_
pmax โsimd128
- Lane-wise maximum value, defined as
a < b ? b : a
- f32x4_
pmin โsimd128
- Lane-wise minimum value, defined as
b < a ? b : a
- f32x4_
replace_ โlane simd128
- Replaces a lane from a 128-bit vector interpreted as 4 packed f32 numbers.
- f32x4_
splat โsimd128
- Creates a vector with identical lanes.
- f32x4_
sqrt โsimd128
- Calculates the square root of each lane of a 128-bit vector interpreted as four 32-bit floating point numbers.
- f32x4_
sub โsimd128
- Lane-wise subtraction of two 128-bit vectors interpreted as four 32-bit floating point numbers.
- f32x4_
trunc โsimd128
- Lane-wise rounding to the nearest integral value with the magnitude not larger than the input.
- f64x2โ
simd128
- Materializes a SIMD value from the provided operands.
- f64x2_
abs โsimd128
- Calculates the absolute value of each lane of a 128-bit vector interpreted as two 64-bit floating point numbers.
- f64x2_
add โsimd128
- Lane-wise add of two 128-bit vectors interpreted as two 64-bit floating point numbers.
- f64x2_
ceil โsimd128
- Lane-wise rounding to the nearest integral value not smaller than the input.
- f64x2_
convert_ โlow_ i32x4 simd128
- Lane-wise conversion from integer to floating point.
- f64x2_
convert_ โlow_ u32x4 simd128
- Lane-wise conversion from integer to floating point.
- f64x2_
div โsimd128
- Lane-wise divide of two 128-bit vectors interpreted as two 64-bit floating point numbers.
- f64x2_
eq โsimd128
- Compares two 128-bit vectors as if they were two vectors of 2 sixty-four-bit floating point numbers.
- f64x2_
extract_ โlane simd128
- Extracts a lane from a 128-bit vector interpreted as 2 packed f64 numbers.
- f64x2_
floor โsimd128
- Lane-wise rounding to the nearest integral value not greater than the input.
- f64x2_
ge โsimd128
- Compares two 128-bit vectors as if they were two vectors of 2 sixty-four-bit floating point numbers.
- f64x2_
gt โsimd128
- Compares two 128-bit vectors as if they were two vectors of 2 sixty-four-bit floating point numbers.
- f64x2_
le โsimd128
- Compares two 128-bit vectors as if they were two vectors of 2 sixty-four-bit floating point numbers.
- f64x2_
lt โsimd128
- Compares two 128-bit vectors as if they were two vectors of 2 sixty-four-bit floating point numbers.
- f64x2_
max โsimd128
- Calculates the lane-wise maximum of two 128-bit vectors interpreted as two 64-bit floating point numbers.
- f64x2_
min โsimd128
- Calculates the lane-wise minimum of two 128-bit vectors interpreted as two 64-bit floating point numbers.
- f64x2_
mul โsimd128
- Lane-wise multiply of two 128-bit vectors interpreted as two 64-bit floating point numbers.
- f64x2_
ne โsimd128
- Compares two 128-bit vectors as if they were two vectors of 2 sixty-four-bit floating point numbers.
- f64x2_
nearest โsimd128
- Lane-wise rounding to the nearest integral value; if two values are equally near, rounds to the even one.
- f64x2_
neg โsimd128
- Negates each lane of a 128-bit vector interpreted as two 64-bit floating point numbers.
- f64x2_
pmax โsimd128
- Lane-wise maximum value, defined as
a < b ? b : a
- f64x2_
pmin โsimd128
- Lane-wise minimum value, defined as
b < a ? b : a
- f64x2_
promote_ โlow_ f32x4 simd128
- Conversion of the two lower single-precision floating point lanes to the two double-precision lanes of the result.
- f64x2_
replace_ โlane simd128
- Replaces a lane from a 128-bit vector interpreted as 2 packed f64 numbers.
- f64x2_
splat โsimd128
- Creates a vector with identical lanes.
- f64x2_
sqrt โsimd128
- Calculates the square root of each lane of a 128-bit vector interpreted as two 64-bit floating point numbers.
- f64x2_
sub โsimd128
- Lane-wise subtract of two 128-bit vectors interpreted as two 64-bit floating point numbers.
- f64x2_
trunc โsimd128
- Lane-wise rounding to the nearest integral value with the magnitude not larger than the input.
- i8x16โ
simd128
- Materializes a SIMD value from the provided operands.
- i8x16_
abs โsimd128
- Lane-wise wrapping absolute value.
- i8x16_
add โsimd128
- Adds two 128-bit vectors as if they were two packed sixteen 8-bit integers.
- i8x16_
add_ โsat simd128
- Adds two 128-bit vectors as if they were two packed sixteen 8-bit signed
integers, saturating on overflow to
i8::MAX
. - i8x16_
all_ โtrue simd128
- Returns true if all lanes are non-zero, false otherwise.
- i8x16_
bitmask โsimd128
- Extracts the high bit for each lane in
a
and produce a scalar mask with all bits concatenated. - i8x16_
eq โsimd128
- Compares two 128-bit vectors as if they were two vectors of 16 eight-bit integers.
- i8x16_
extract_ โlane simd128
- Extracts a lane from a 128-bit vector interpreted as 16 packed i8 numbers.
- i8x16_
ge โsimd128
- Compares two 128-bit vectors as if they were two vectors of 16 eight-bit signed integers.
- i8x16_
gt โsimd128
- Compares two 128-bit vectors as if they were two vectors of 16 eight-bit signed integers.
- i8x16_
le โsimd128
- Compares two 128-bit vectors as if they were two vectors of 16 eight-bit signed integers.
- i8x16_
lt โsimd128
- Compares two 128-bit vectors as if they were two vectors of 16 eight-bit signed integers.
- i8x16_
max โsimd128
- Compares lane-wise signed integers, and returns the maximum of each pair.
- i8x16_
min โsimd128
- Compares lane-wise signed integers, and returns the minimum of each pair.
- i8x16_
narrow_ โi16x8 simd128
- Converts two input vectors into a smaller lane vector by narrowing each lane.
- i8x16_
ne โsimd128
- Compares two 128-bit vectors as if they were two vectors of 16 eight-bit integers.
- i8x16_
neg โsimd128
- Negates a 128-bit vectors interpreted as sixteen 8-bit signed integers
- i8x16_
popcnt โsimd128
- Count the number of bits set to one within each lane.
- i8x16_
replace_ โlane simd128
- Replaces a lane from a 128-bit vector interpreted as 16 packed i8 numbers.
- i8x16_
shl โsimd128
- Shifts each lane to the left by the specified number of bits.
- i8x16_
shr โsimd128
- Shifts each lane to the right by the specified number of bits, sign extending.
- i8x16_
shuffle โsimd128
- Returns a new vector with lanes selected from the lanes of the two input
vectors
$a
and$b
specified in the 16 immediate operands. - i8x16_
splat โsimd128
- Creates a vector with identical lanes.
- i8x16_
sub โsimd128
- Subtracts two 128-bit vectors as if they were two packed sixteen 8-bit integers.
- i8x16_
sub_ โsat simd128
- Subtracts two 128-bit vectors as if they were two packed sixteen 8-bit
signed integers, saturating on overflow to
i8::MIN
. - i8x16_
swizzle โsimd128
- Returns a new vector with lanes selected from the lanes of the first input
vector
a
specified in the second input vectors
. - i16x8โ
simd128
- Materializes a SIMD value from the provided operands.
- i16x8_
abs โsimd128
- Lane-wise wrapping absolute value.
- i16x8_
add โsimd128
- Adds two 128-bit vectors as if they were two packed eight 16-bit integers.
- i16x8_
add_ โsat simd128
- Adds two 128-bit vectors as if they were two packed eight 16-bit signed
integers, saturating on overflow to
i16::MAX
. - i16x8_
all_ โtrue simd128
- Returns true if all lanes are non-zero, false otherwise.
- i16x8_
bitmask โsimd128
- Extracts the high bit for each lane in
a
and produce a scalar mask with all bits concatenated. - i16x8_
eq โsimd128
- Compares two 128-bit vectors as if they were two vectors of 8 sixteen-bit integers.
- i16x8_
extadd_ โpairwise_ i8x16 simd128
- Integer extended pairwise addition producing extended results (twice wider results than the inputs).
- i16x8_
extadd_ โpairwise_ u8x16 simd128
- Integer extended pairwise addition producing extended results (twice wider results than the inputs).
- i16x8_
extend_ โhigh_ i8x16 simd128
- Converts high half of the smaller lane vector to a larger lane vector, sign extended.
- i16x8_
extend_ โhigh_ u8x16 simd128
- Converts high half of the smaller lane vector to a larger lane vector, zero extended.
- i16x8_
extend_ โlow_ i8x16 simd128
- Converts low half of the smaller lane vector to a larger lane vector, sign extended.
- i16x8_
extend_ โlow_ u8x16 simd128
- Converts low half of the smaller lane vector to a larger lane vector, zero extended.
- i16x8_
extmul_ โhigh_ i8x16 simd128
- Lane-wise integer extended multiplication producing twice wider result than the inputs.
- i16x8_
extmul_ โhigh_ u8x16 simd128
- Lane-wise integer extended multiplication producing twice wider result than the inputs.
- i16x8_
extmul_ โlow_ i8x16 simd128
- Lane-wise integer extended multiplication producing twice wider result than the inputs.
- i16x8_
extmul_ โlow_ u8x16 simd128
- Lane-wise integer extended multiplication producing twice wider result than the inputs.
- i16x8_
extract_ โlane simd128
- Extracts a lane from a 128-bit vector interpreted as 8 packed i16 numbers.
- i16x8_
ge โsimd128
- Compares two 128-bit vectors as if they were two vectors of 8 sixteen-bit signed integers.
- i16x8_
gt โsimd128
- Compares two 128-bit vectors as if they were two vectors of 8 sixteen-bit signed integers.
- i16x8_
le โsimd128
- Compares two 128-bit vectors as if they were two vectors of 8 sixteen-bit signed integers.
- i16x8_
load_ โextend_ i8x8 simd128
- Load eight 8-bit integers and sign extend each one to a 16-bit lane
- i16x8_
load_ โextend_ u8x8 simd128
- Load eight 8-bit integers and zero extend each one to a 16-bit lane
- i16x8_
lt โsimd128
- Compares two 128-bit vectors as if they were two vectors of 8 sixteen-bit signed integers.
- i16x8_
max โsimd128
- Compares lane-wise signed integers, and returns the maximum of each pair.
- i16x8_
min โsimd128
- Compares lane-wise signed integers, and returns the minimum of each pair.
- i16x8_
mul โsimd128
- Multiplies two 128-bit vectors as if they were two packed eight 16-bit signed integers.
- i16x8_
narrow_ โi32x4 simd128
- Converts two input vectors into a smaller lane vector by narrowing each lane.
- i16x8_
ne โsimd128
- Compares two 128-bit vectors as if they were two vectors of 8 sixteen-bit integers.
- i16x8_
neg โsimd128
- Negates a 128-bit vectors interpreted as eight 16-bit signed integers
- i16x8_
q15mulr_ โsat simd128
- Lane-wise saturating rounding multiplication in Q15 format.
- i16x8_
replace_ โlane simd128
- Replaces a lane from a 128-bit vector interpreted as 8 packed i16 numbers.
- i16x8_
shl โsimd128
- Shifts each lane to the left by the specified number of bits.
- i16x8_
shr โsimd128
- Shifts each lane to the right by the specified number of bits, sign extending.
- i16x8_
shuffle โsimd128
- Same as
i8x16_shuffle
, except operates as if the inputs were eight 16-bit integers, only taking 8 indices to shuffle. - i16x8_
splat โsimd128
- Creates a vector with identical lanes.
- i16x8_
sub โsimd128
- Subtracts two 128-bit vectors as if they were two packed eight 16-bit integers.
- i16x8_
sub_ โsat simd128
- Subtracts two 128-bit vectors as if they were two packed eight 16-bit
signed integers, saturating on overflow to
i16::MIN
. - i32x4โ
simd128
- Materializes a SIMD value from the provided operands.
- i32x4_
abs โsimd128
- Lane-wise wrapping absolute value.
- i32x4_
add โsimd128
- Adds two 128-bit vectors as if they were two packed four 32-bit integers.
- i32x4_
all_ โtrue simd128
- Returns true if all lanes are non-zero, false otherwise.
- i32x4_
bitmask โsimd128
- Extracts the high bit for each lane in
a
and produce a scalar mask with all bits concatenated. - i32x4_
dot_ โi16x8 simd128
- Lane-wise multiply signed 16-bit integers in the two input vectors and add adjacent pairs of the full 32-bit results.
- i32x4_
eq โsimd128
- Compares two 128-bit vectors as if they were two vectors of 4 thirty-two-bit integers.
- i32x4_
extadd_ โpairwise_ i16x8 simd128
- Integer extended pairwise addition producing extended results (twice wider results than the inputs).
- i32x4_
extadd_ โpairwise_ u16x8 simd128
- Integer extended pairwise addition producing extended results (twice wider results than the inputs).
- i32x4_
extend_ โhigh_ i16x8 simd128
- Converts high half of the smaller lane vector to a larger lane vector, sign extended.
- i32x4_
extend_ โhigh_ u16x8 simd128
- Converts high half of the smaller lane vector to a larger lane vector, zero extended.
- i32x4_
extend_ โlow_ i16x8 simd128
- Converts low half of the smaller lane vector to a larger lane vector, sign extended.
- i32x4_
extend_ โlow_ u16x8 simd128
- Converts low half of the smaller lane vector to a larger lane vector, zero extended.
- i32x4_
extmul_ โhigh_ i16x8 simd128
- Lane-wise integer extended multiplication producing twice wider result than the inputs.
- i32x4_
extmul_ โhigh_ u16x8 simd128
- Lane-wise integer extended multiplication producing twice wider result than the inputs.
- i32x4_
extmul_ โlow_ i16x8 simd128
- Lane-wise integer extended multiplication producing twice wider result than the inputs.
- i32x4_
extmul_ โlow_ u16x8 simd128
- Lane-wise integer extended multiplication producing twice wider result than the inputs.
- i32x4_
extract_ โlane simd128
- Extracts a lane from a 128-bit vector interpreted as 4 packed i32 numbers.
- i32x4_
ge โsimd128
- Compares two 128-bit vectors as if they were two vectors of 4 thirty-two-bit signed integers.
- i32x4_
gt โsimd128
- Compares two 128-bit vectors as if they were two vectors of 4 thirty-two-bit signed integers.
- i32x4_
le โsimd128
- Compares two 128-bit vectors as if they were two vectors of 4 thirty-two-bit signed integers.
- i32x4_
load_ โextend_ i16x4 simd128
- Load four 16-bit integers and sign extend each one to a 32-bit lane
- i32x4_
load_ โextend_ u16x4 simd128
- Load four 16-bit integers and zero extend each one to a 32-bit lane
- i32x4_
lt โsimd128
- Compares two 128-bit vectors as if they were two vectors of 4 thirty-two-bit signed integers.
- i32x4_
max โsimd128
- Compares lane-wise signed integers, and returns the maximum of each pair.
- i32x4_
min โsimd128
- Compares lane-wise signed integers, and returns the minimum of each pair.
- i32x4_
mul โsimd128
- Multiplies two 128-bit vectors as if they were two packed four 32-bit signed integers.
- i32x4_
ne โsimd128
- Compares two 128-bit vectors as if they were two vectors of 4 thirty-two-bit integers.
- i32x4_
neg โsimd128
- Negates a 128-bit vectors interpreted as four 32-bit signed integers
- i32x4_
replace_ โlane simd128
- Replaces a lane from a 128-bit vector interpreted as 4 packed i32 numbers.
- i32x4_
shl โsimd128
- Shifts each lane to the left by the specified number of bits.
- i32x4_
shr โsimd128
- Shifts each lane to the right by the specified number of bits, sign extending.
- i32x4_
shuffle โsimd128
- Same as
i8x16_shuffle
, except operates as if the inputs were four 32-bit integers, only taking 4 indices to shuffle. - i32x4_
splat โsimd128
- Creates a vector with identical lanes.
- i32x4_
sub โsimd128
- Subtracts two 128-bit vectors as if they were two packed four 32-bit integers.
- i32x4_
trunc_ โsat_ f32x4 simd128
- Converts a 128-bit vector interpreted as four 32-bit floating point numbers into a 128-bit vector of four 32-bit signed integers.
- i32x4_
trunc_ โsat_ f64x2_ zero simd128
- Saturating conversion of the two double-precision floating point lanes to
two lower integer lanes using the IEEE
convertToIntegerTowardZero
function. - i64x2โ
simd128
- Materializes a SIMD value from the provided operands.
- i64x2_
abs โsimd128
- Lane-wise wrapping absolute value.
- i64x2_
add โsimd128
- Adds two 128-bit vectors as if they were two packed two 64-bit integers.
- i64x2_
all_ โtrue simd128
- Returns true if all lanes are non-zero, false otherwise.
- i64x2_
bitmask โsimd128
- Extracts the high bit for each lane in
a
and produce a scalar mask with all bits concatenated. - i64x2_
eq โsimd128
- Compares two 128-bit vectors as if they were two vectors of 2 sixty-four-bit integers.
- i64x2_
extend_ โhigh_ i32x4 simd128
- Converts high half of the smaller lane vector to a larger lane vector, sign extended.
- i64x2_
extend_ โhigh_ u32x4 simd128
- Converts high half of the smaller lane vector to a larger lane vector, zero extended.
- i64x2_
extend_ โlow_ i32x4 simd128
- Converts low half of the smaller lane vector to a larger lane vector, sign extended.
- i64x2_
extend_ โlow_ u32x4 simd128
- Converts low half of the smaller lane vector to a larger lane vector, zero extended.
- i64x2_
extmul_ โhigh_ i32x4 simd128
- Lane-wise integer extended multiplication producing twice wider result than the inputs.
- i64x2_
extmul_ โhigh_ u32x4 simd128
- Lane-wise integer extended multiplication producing twice wider result than the inputs.
- i64x2_
extmul_ โlow_ i32x4 simd128
- Lane-wise integer extended multiplication producing twice wider result than the inputs.
- i64x2_
extmul_ โlow_ u32x4 simd128
- Lane-wise integer extended multiplication producing twice wider result than the inputs.
- i64x2_
extract_ โlane simd128
- Extracts a lane from a 128-bit vector interpreted as 2 packed i64 numbers.
- i64x2_
ge โsimd128
- Compares two 128-bit vectors as if they were two vectors of 2 sixty-four-bit signed integers.
- i64x2_
gt โsimd128
- Compares two 128-bit vectors as if they were two vectors of 2 sixty-four-bit signed integers.
- i64x2_
le โsimd128
- Compares two 128-bit vectors as if they were two vectors of 2 sixty-four-bit signed integers.
- i64x2_
load_ โextend_ i32x2 simd128
- Load two 32-bit integers and sign extend each one to a 64-bit lane
- i64x2_
load_ โextend_ u32x2 simd128
- Load two 32-bit integers and zero extend each one to a 64-bit lane
- i64x2_
lt โsimd128
- Compares two 128-bit vectors as if they were two vectors of 2 sixty-four-bit signed integers.
- i64x2_
mul โsimd128
- Multiplies two 128-bit vectors as if they were two packed two 64-bit integers.
- i64x2_
ne โsimd128
- Compares two 128-bit vectors as if they were two vectors of 2 sixty-four-bit integers.
- i64x2_
neg โsimd128
- Negates a 128-bit vectors interpreted as two 64-bit signed integers
- i64x2_
replace_ โlane simd128
- Replaces a lane from a 128-bit vector interpreted as 2 packed i64 numbers.
- i64x2_
shl โsimd128
- Shifts each lane to the left by the specified number of bits.
- i64x2_
shr โsimd128
- Shifts each lane to the right by the specified number of bits, sign extending.
- i64x2_
shuffle โsimd128
- Same as
i8x16_shuffle
, except operates as if the inputs were two 64-bit integers, only taking 2 indices to shuffle. - i64x2_
splat โsimd128
- Creates a vector with identical lanes.
- i64x2_
sub โsimd128
- Subtracts two 128-bit vectors as if they were two packed two 64-bit integers.
- llvm_
any_ ๐ โtrue_ i8x16 - llvm_
avgr_ ๐ โu_ i8x16 - llvm_
avgr_ ๐ โu_ i16x8 - llvm_
bitmask_ ๐ โi8x16 - llvm_
bitmask_ ๐ โi16x8 - llvm_
bitmask_ ๐ โi32x4 - llvm_
bitmask_ ๐ โi64x2 - llvm_
bitselect ๐ โ - llvm_
f32x4_ ๐ โmax - llvm_
f32x4_ ๐ โmin - llvm_
f32x4_ ๐ โnearest - llvm_
f64x2_ ๐ โmax - llvm_
f64x2_ ๐ โmin - llvm_
f64x2_ ๐ โnearest - llvm_
i8x16_ ๐ โall_ true - llvm_
i16x8_ ๐ โall_ true - llvm_
i16x8_ ๐ โextadd_ pairwise_ i8x16_ s - llvm_
i16x8_ ๐ โextadd_ pairwise_ i8x16_ u - llvm_
i32x4_ ๐ โall_ true - llvm_
i32x4_ ๐ โdot_ i16x8_ s - llvm_
i32x4_ ๐ โextadd_ pairwise_ i16x8_ s - llvm_
i32x4_ ๐ โextadd_ pairwise_ i16x8_ u - llvm_
i64x2_ ๐ โall_ true - llvm_
narrow_ ๐ โi8x16_ s - llvm_
narrow_ ๐ โi8x16_ u - llvm_
narrow_ ๐ โi16x8_ s - llvm_
narrow_ ๐ โi16x8_ u - llvm_
q15mulr ๐ โ - llvm_
swizzle ๐ โ - u8x16โ
simd128
- Materializes a SIMD value from the provided operands.
- u8x16_
add_ โsat simd128
- Adds two 128-bit vectors as if they were two packed sixteen 8-bit unsigned
integers, saturating on overflow to
u8::MAX
. - u8x16_
avgr โsimd128
- Lane-wise rounding average.
- u8x16_
extract_ โlane simd128
- Extracts a lane from a 128-bit vector interpreted as 16 packed u8 numbers.
- u8x16_
ge โsimd128
- Compares two 128-bit vectors as if they were two vectors of 16 eight-bit unsigned integers.
- u8x16_
gt โsimd128
- Compares two 128-bit vectors as if they were two vectors of 16 eight-bit unsigned integers.
- u8x16_
le โsimd128
- Compares two 128-bit vectors as if they were two vectors of 16 eight-bit unsigned integers.
- u8x16_
lt โsimd128
- Compares two 128-bit vectors as if they were two vectors of 16 eight-bit unsigned integers.
- u8x16_
max โsimd128
- Compares lane-wise unsigned integers, and returns the maximum of each pair.
- u8x16_
min โsimd128
- Compares lane-wise unsigned integers, and returns the minimum of each pair.
- u8x16_
narrow_ โi16x8 simd128
- Converts two input vectors into a smaller lane vector by narrowing each lane.
- u8x16_
replace_ โlane simd128
- Replaces a lane from a 128-bit vector interpreted as 16 packed u8 numbers.
- u8x16_
shr โsimd128
- Shifts each lane to the right by the specified number of bits, shifting in zeros.
- u8x16_
splat โsimd128
- Creates a vector with identical lanes.
- u8x16_
sub_ โsat simd128
- Subtracts two 128-bit vectors as if they were two packed sixteen 8-bit unsigned integers, saturating on overflow to 0.
- u16x8โ
simd128
- Materializes a SIMD value from the provided operands.
- u16x8_
add_ โsat simd128
- Adds two 128-bit vectors as if they were two packed eight 16-bit unsigned
integers, saturating on overflow to
u16::MAX
. - u16x8_
avgr โsimd128
- Lane-wise rounding average.
- u16x8_
extract_ โlane simd128
- Extracts a lane from a 128-bit vector interpreted as 8 packed u16 numbers.
- u16x8_
ge โsimd128
- Compares two 128-bit vectors as if they were two vectors of 8 sixteen-bit unsigned integers.
- u16x8_
gt โsimd128
- Compares two 128-bit vectors as if they were two vectors of 8 sixteen-bit unsigned integers.
- u16x8_
le โsimd128
- Compares two 128-bit vectors as if they were two vectors of 8 sixteen-bit unsigned integers.
- u16x8_
lt โsimd128
- Compares two 128-bit vectors as if they were two vectors of 8 sixteen-bit unsigned integers.
- u16x8_
max โsimd128
- Compares lane-wise unsigned integers, and returns the maximum of each pair.
- u16x8_
min โsimd128
- Compares lane-wise unsigned integers, and returns the minimum of each pair.
- u16x8_
narrow_ โi32x4 simd128
- Converts two input vectors into a smaller lane vector by narrowing each lane.
- u16x8_
replace_ โlane simd128
- Replaces a lane from a 128-bit vector interpreted as 8 packed u16 numbers.
- u16x8_
shr โsimd128
- Shifts each lane to the right by the specified number of bits, shifting in zeros.
- u16x8_
splat โsimd128
- Creates a vector with identical lanes.
- u16x8_
sub_ โsat simd128
- Subtracts two 128-bit vectors as if they were two packed eight 16-bit unsigned integers, saturating on overflow to 0.
- u32x4โ
simd128
- Materializes a SIMD value from the provided operands.
- u32x4_
extract_ โlane simd128
- Extracts a lane from a 128-bit vector interpreted as 4 packed u32 numbers.
- u32x4_
ge โsimd128
- Compares two 128-bit vectors as if they were two vectors of 4 thirty-two-bit unsigned integers.
- u32x4_
gt โsimd128
- Compares two 128-bit vectors as if they were two vectors of 4 thirty-two-bit unsigned integers.
- u32x4_
le โsimd128
- Compares two 128-bit vectors as if they were two vectors of 4 thirty-two-bit unsigned integers.
- u32x4_
lt โsimd128
- Compares two 128-bit vectors as if they were two vectors of 4 thirty-two-bit unsigned integers.
- u32x4_
max โsimd128
- Compares lane-wise unsigned integers, and returns the maximum of each pair.
- u32x4_
min โsimd128
- Compares lane-wise unsigned integers, and returns the minimum of each pair.
- u32x4_
replace_ โlane simd128
- Replaces a lane from a 128-bit vector interpreted as 4 packed u32 numbers.
- u32x4_
shr โsimd128
- Shifts each lane to the right by the specified number of bits, shifting in zeros.
- u32x4_
splat โsimd128
- Creates a vector with identical lanes.
- u32x4_
trunc_ โsat_ f32x4 simd128
- Converts a 128-bit vector interpreted as four 32-bit floating point numbers into a 128-bit vector of four 32-bit unsigned integers.
- u32x4_
trunc_ โsat_ f64x2_ zero simd128
- Saturating conversion of the two double-precision floating point lanes to
two lower integer lanes using the IEEE
convertToIntegerTowardZero
function. - u64x2โ
simd128
- Materializes a SIMD value from the provided operands.
- u64x2_
extract_ โlane simd128
- Extracts a lane from a 128-bit vector interpreted as 2 packed u64 numbers.
- u64x2_
replace_ โlane simd128
- Replaces a lane from a 128-bit vector interpreted as 2 packed u64 numbers.
- u64x2_
shr โsimd128
- Shifts each lane to the right by the specified number of bits, shifting in zeros.
- u64x2_
splat โsimd128
- Creates a vector with identical lanes.
- v128_
and โsimd128
- Performs a bitwise and of the two input 128-bit vectors, returning the resulting vector.
- v128_
andnot โsimd128
- Bitwise AND of bits of
a
and the logical inverse of bits ofb
. - v128_
any_ โtrue simd128
- Returns
true
if any bit ina
is set, orfalse
otherwise. - v128_
bitselect โsimd128
- Use the bitmask in
c
to select bits fromv1
when 1 andv2
when 0. - v128_
load โsimd128
- Loads a
v128
vector from the given heap address. - v128_
load8_ โlane simd128
- Loads an 8-bit value from
m
and sets laneL
ofv
to that value. - v128_
load8_ โsplat simd128
- Load a single element and splat to all lanes of a v128 vector.
- v128_
load16_ โlane simd128
- Loads a 16-bit value from
m
and sets laneL
ofv
to that value. - v128_
load16_ โsplat simd128
- Load a single element and splat to all lanes of a v128 vector.
- v128_
load32_ โlane simd128
- Loads a 32-bit value from
m
and sets laneL
ofv
to that value. - v128_
load32_ โsplat simd128
- Load a single element and splat to all lanes of a v128 vector.
- v128_
load32_ โzero simd128
- Load a 32-bit element into the low bits of the vector and sets all other bits to zero.
- v128_
load64_ โlane simd128
- Loads a 64-bit value from
m
and sets laneL
ofv
to that value. - v128_
load64_ โsplat simd128
- Load a single element and splat to all lanes of a v128 vector.
- v128_
load64_ โzero simd128
- Load a 64-bit element into the low bits of the vector and sets all other bits to zero.
- v128_
not โsimd128
- Flips each bit of the 128-bit input vector.
- v128_orโ
simd128
- Performs a bitwise or of the two input 128-bit vectors, returning the resulting vector.
- v128_
store โsimd128
- Stores a
v128
vector to the given heap address. - v128_
store8_ โlane simd128
- Stores the 8-bit value from lane
L
ofv
intom
- v128_
store16_ โlane simd128
- Stores the 16-bit value from lane
L
ofv
intom
- v128_
store32_ โlane simd128
- Stores the 32-bit value from lane
L
ofv
intom
- v128_
store64_ โlane simd128
- Stores the 64-bit value from lane
L
ofv
intom
- v128_
xor โsimd128
- Performs a bitwise xor of the two input 128-bit vectors, returning the resulting vector.