doc.rust-lang.org
pub const fn u8x16(a0: u8, a1: u8, a2: u8, a3: u8, a4: u8, a5: u8, a6: u8, a7: u8, a8: u8, a9: u8, a10: u8, a11: u8, a12: u8, a13: u8, a14: u8, a15: u8) -> v128
Materializes a SIMD value from the provided operands.
function
core
Stable since 1.54.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn u8x16_add_sat(a: v128, b: v128) -> v128
Adds two 128-bit vectors as if they were two packed sixteen 8-bit unsigned integers, saturating on overflow to u8::MAX.
function
core
Stable since 1.54.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn u8x16_avgr(a: v128, b: v128) -> v128
Lane-wise rounding average.
function
core
Stable since 1.54.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn u8x16_extract_lane<const N: usize>(a: v128) -> u8
Extracts a lane from a 128-bit vector interpreted as 16 packed u8 numbers.
function
core
Stable since 1.54.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn u8x16_ge(a: v128, b: v128) -> v128
Compares two 128-bit vectors as if they were two vectors of 16 eight-bit unsigned integers.
function
core
Stable since 1.54.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn u8x16_gt(a: v128, b: v128) -> v128
Compares two 128-bit vectors as if they were two vectors of 16 eight-bit unsigned integers.
function
core
Stable since 1.54.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn u8x16_le(a: v128, b: v128) -> v128
Compares two 128-bit vectors as if they were two vectors of 16 eight-bit unsigned integers.
function
core
Stable since 1.54.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn u8x16_lt(a: v128, b: v128) -> v128
Compares two 128-bit vectors as if they were two vectors of 16 eight-bit unsigned integers.
function
core
Stable since 1.54.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn u8x16_max(a: v128, b: v128) -> v128
Compares lane-wise unsigned integers, and returns the maximum of each pair.
function
core
Stable since 1.54.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn u8x16_min(a: v128, b: v128) -> v128
Compares lane-wise unsigned integers, and returns the minimum of each pair.
function
core
Stable since 1.54.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn u8x16_narrow_i16x8(a: v128, b: v128) -> v128
Converts two input vectors into a smaller lane vector by narrowing each lane.
function
core
Stable since 1.54.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn u8x16_replace_lane<const N: usize>(a: v128, val: u8) -> v128
Replaces a lane from a 128-bit vector interpreted as 16 packed u8 numbers.
function
core
Stable since 1.54.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn u8x16_shr(a: v128, amt: u32) -> v128
Shifts each lane to the right by the specified number of bits, shifting in zeros.
function
core
Stable since 1.54.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn u8x16_splat(a: u8) -> v128
Creates a vector with identical lanes.
function
core
Stable since 1.54.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn u8x16_sub_sat(a: v128, b: v128) -> v128
Subtracts two 128-bit vectors as if they were two packed sixteen 8-bit unsigned integers, saturating on overflow to 0.
function
core
Stable since 1.54.0
Version 1.100.0-nightly
doc.rust-lang.org
pub struct v128
WASM-specific 128-bit wide SIMD vector type.
struct
core
Stable since 1.54.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn v128_and(a: v128, b: v128) -> v128
Performs a bitwise and of the two input 128-bit vectors, returning the resulting vector.
function
core
Stable since 1.54.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn v128_andnot(a: v128, b: v128) -> v128
Bitwise AND of bits of a and the logical inverse of bits of b.
function
core
Stable since 1.54.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn v128_any_true(a: v128) -> bool
Returns true if any bit in a is set, or false otherwise.
function
core
Stable since 1.54.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn v128_bitselect(v1: v128, v2: v128, c: v128) -> v128
Use the bitmask in c to select bits from v1 when 1 and v2 when 0.
function
core
Stable since 1.54.0
Version 1.100.0-nightly