simd_masked_store in core::intrinsics::simd - Rust
Description: Writes to a vector of pointers.

## simd_masked_store

# Function simd_masked_store

Source

    pub const unsafe fn simd_masked_store<V, U, T, const ALIGN: SimdAlign>(
        mask: V,
        ptr: U,
        val: T,
    )

🔬This is a nightly-only experimental API. (`core_intrinsics`)
Expand description

Writes to a vector of pointers.

`T` must be a vector.

`U` must be a pointer to the element type of `T`

`V` must be a vector of integers with the same length as `T` (but any element size).

For each element, if the corresponding value in `mask` is `!0`, write the corresponding value in `val` to the pointer offset from `ptr`. The first element is written to `ptr`, the second to `ptr.wrapping_offset(1)` and so on. Otherwise if the corresponding value in `mask` is `0`, do nothing.

## §Safety

`ptr` must be aligned according to the `ALIGN` parameter, see `SimdAlign` for details.

`mask` must only contain `0` or `!0` values.