Function core::arch::x86::_mm_set_ps

1.27.0 · source ·
pub unsafe fn _mm_set_ps(a: f32, b: f32, c: f32, d: f32) -> __m128
Available on (x86 or x86-64) and target feature sse and x86 only.
Expand description

从最高到最低的四个浮点值构造 __m128

请注意,a 将是结果的最高 32 位,而 d 则是最低的 32 位。 这与在 x86 上写入位模式的标准方式匹配:

 bit    127 .. 96  95 .. 64  63 .. 32  31 .. 0
       +---------+---------+---------+---------+
       |    a    |    b    |    c    |    d    |   result
       +---------+---------+---------+---------+

Alternatively:

let v = _mm_set_ps(d, c, b, a);

Intel’s documentation