pub unsafe fn v128_load(m: *const v128) -> v128
🔬This is a nightly-only experimental API. (
simd_wasm64
#90599)Available on
target_family="wasm"
and target feature simd128
only.Expand description
Loads a v128
vector from the given heap address.
This intrinsic will emit a load with an alignment of 1. While this is provided for completeness it is not strictly necessary, you can also load the pointer directly:
The alignment of the load can be configured by doing a manual load without this intrinsic.
§Unsafety
This intrinsic is unsafe because it takes a raw pointer as an argument, and the pointer must be valid to load 16 bytes from. Note that there is no alignment requirement on this pointer since this intrinsic performs a 1-aligned load.