Suppose I have a __m128i
containing 4 32-bit integer values.
Is there some way I can store it inside a char[4]
, where the lower char from each int
value is stored in a char
value?
Desired result:
r1 r2 r3 r4
__m128i 0x00000012 0x00000034 0x00000056 0x00000078
|
V
char[4] 0x12 0x34 0x56 0x78
SSE2 and below is preferred. Compiling on MSVC++.