_mm_inserti_si64 in core::arch::x86_64 - Rust
Description: Inserts the `len` least-significant bits from the lower 64 bits of the 128-bit integer vector operand `y` into the lower 64 bits of the 128-bit integer vector operand `x` at the index `idx` and of the length `len`.

Skip to main content

## _mm_inserti_si64

# Function _mm_inserti_si64

1.82.0 · Source

    pub fn _mm_inserti_si64(
        x: __m128i,
        y: __m128i,
        const LEN: i32,
        const IDX: i32,
    ) -> __m128i

Available on x86-64 and target feature `sse4a` only.
Expand description

Inserts the `len` least-significant bits from the lower 64 bits of the 128-bit integer vector operand `y` into the lower 64 bits of the 128-bit integer vector operand `x` at the index `idx` and of the length `len`.

`idx` specifies the index of the LSB. `len` specifies the number of bits to insert. If length and index are both zero, bits `[63:0]` of parameter `x` are replaced with bits `[63:0]` of parameter `y`. It is a compile-time error for `len + idx` to be greater than 64 or for `len` to be zero and `idx` to be non-zero.