Function no_std_compat::arch::x86_64::_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-64 only.
Expand description
Construct a __m128
from four floating point values highest to lowest.
Note that a
will be the highest 32 bits of the result, and d
the
lowest. This matches the standard way of writing bit patterns on 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);