# Function core::arch::x86_64::_mm_insert_si64

1.27.0 · source · [−]

    pub unsafe fn _mm_insert_si64(x: __m128i, y: __m128i) -> __m128i

This is supported on x86-64 and target feature `sse4a` only.
Expand description

Inserts the `[length:0]` bits of `y` into `x` at `index`.

The bits of `y`:

- `[69:64]` specify the `length`,
- `[77:72]` specify the index.

If the `length` is zero it is interpreted as `64`. If `index + length > 64` or `index > 0 && length == 0` the result is undefined.