Function core::arch::wasm::v128_load8_splat1.54.0[][src]

pub unsafe fn v128_load8_splat(m: *const u8) -> v128
This is supported on target_family="wasm" and target feature simd128 only.
Expand description

Load a single element and splat to all lanes of a v128 vector.

While this intrinsic is provided for completeness it can also be replaced with u8x16_splat(*m) and it should generate equivalent code (and also not require unsafe).

Unsafety

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