Set Operations for Streaming SIMD Extensions

See summary table in Summary of Memory and Initialization topic.

The prototypes for Streaming SIMD Extensions intrinsics are in the xmmintrin.h header file.

__m128 _mm_set_ss(float w )

Sets the low word of an SP FP value to w and clears the upper three words.
r0 := w
r1 := r2 := r3 := 0.0

__m128 _mm_set_ps1(float w )

Sets the four SP FP values to w.
r0 := r1 := r2 := r3 := w

__m128 _mm_set_ps(float z, float y, float x, float w )

Sets the four SP FP values to the four inputs.
r0 := w
r1 := x
r2 := y
r3 := z

__m128 _mm_setr_ps(float z, float y, float x, float w )

Sets the four SP FP values to the four inputs in reverse order.
r0 := z
r1 := y
r2 := x
r3 := w

__m128 _mm_setzero_ps(void)

Clears the four SP FP values.
r0 := r1 := r2 := r3 := 0.0