I want to convert an array of unsigned short numbers to float using SSE. Let’s say
__m128i xVal; // Has 8 16-bit unsigned integers
__m128 y1, y2; // 2 xmm registers for 8 float values
I want first 4 uint16 in y1 & next 4 uint16 in y2.
Need to know which sse intrinsic to use.
You need to first unpack your vector of 8 x 16 bit unsigned shorts into two vectors of 32 bit unsigned ints, then convert each of these vectors to float: