Skip to main content

## v128_store16_lane

# Function v128_store16_lane

Source

    pub unsafe fn v128_store16_lane<const L: usize>(v: v128, m: *mut u16)

🔬This is a nightly-only experimental API. (`simd_wasm64` #90599)
Available on WebAssembly and target feature `simd128` only.
Expand description

Stores the 16-bit value from lane `L` of `v` into `m`

This intrinsic is provided for completeness and is equivalent to `*m = u16x8_extract_lane::<L>(v)` (which doesn’t require `unsafe`).

## §Unsafety

This intrinsic is unsafe because it takes a raw pointer as an argument, and the pointer must be valid to store 2 bytes to. Note that there is no alignment requirement on this pointer since this intrinsic performs a 1-aligned store.