Function core::arch::x86::_mm_store1_ps1.27.0[][src]

pub unsafe fn _mm_store1_ps(p: *mut f32, a: __m128)
This is supported on x86 and target feature sse only.
Expand description

a 的最低 32 位浮点数重复存储四次到 aligned 存储器中。

如果指针未与 128 位边界 (16 个字节) 对齐,则将触发一般保护错误 (致命程序崩溃)。

在功能上等效于以下代码序列 (假设 p 满足对齐限制) :

let x = a.extract(0);
*p = x;
*p.offset(1) = x;
*p.offset(2) = x;
*p.offset(3) = x;

Intel’s documentation