_mm256_castps128_ps256 in core::arch::x86 - Rust
Description: Casts vector of type __m128 to type __m256; the upper 128 bits of the result are indeterminate.

Skip to main content

## _mm256_castps128_ps256

# Function _mm256_castps128_ps256

1.27.0 (const: unstable) · Source

    pub fn _mm256_castps128_ps256(a: __m128) -> __m256

Available on x86 and (x86 or x86-64) and target feature `avx` only.
Expand description

Casts vector of type __m128 to type __m256; the upper 128 bits of the result are indeterminate.

In the Intel documentation, the upper bits are declared to be “undefined”. This is not equivalent to `mem::MaybeUninit`; instead, these bits are non-deterministically set to some valid value. In practice, this is typically equivalent to `mem::zeroed`.

Intel’s documentation