Function core::arch::x86_64::_mm_store1_ps

1.27.0 · source ·
pub unsafe fn _mm_store1_ps(p: *mut f32, a: __m128)
Available on (x86 or x86-64) and target feature sse and x86-64 only.
Expand description

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

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

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

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

Intel’s documentation