v128_load32_zero in core::arch::wasm32 - Rust
Description: Load a 32-bit element into the low bits of the vector and sets all other bits to zero.
Keywords: rust, rustlang, rust-lang, v128_load32_zero

# Function core::arch::wasm32::v128_load32_zero
1.54.0[−][src]

    pub unsafe fn v128_load32_zero(m: *const u32) -> v128

This is supported on WebAssembly and target feature `simd128` only.
Expand description

Load a 32-bit element into the low bits of the vector and sets all other bits to zero.

This intrinsic is provided for completeness and is equivalent to `u32x4(*m, 0, 0, 0)` (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 load 4 bytes from. Note that there is no alignment requirement on this pointer since this intrinsic performs a 1-aligned load.