How can I extract 2 bytes or any amount of bytes from xmm register?
Currently I am using an array to dump the whole register and then I access the bytes that I want. However that seems not as efficient as it could be. Is there a way to efficiently get just the bytes I am interested in?
(I am working in C on Linux 64bit)
The mnemonics for the instructions you probably want are
MOVDandMOVQand corresponding intrinsics are_mm_cvtsi128_si32and_mm_cvtsi128_si64.