Function core::arch::wasm32::v128_store8_lane1.54.0[][src]

pub unsafe fn v128_store8_lane<const L: usize>(v: v128, m: *mut u8)
This is supported on WebAssembly and target feature simd128 only.
Expand description

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

This intrinsic is provided for completeness and is equivalent to *m = u8x16_extract_lane::<L>(v) (which doesn’t require unsafe). Note, though, that at the time of this writing this equivalent pattern does not optimize to the same WebAssembly instruction that this function generates. This will be fixed in the LLVM 13 release.

Unsafety

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