Re: [Qemu-devel] [PATCH 3/7] target-mips: add unions to access DSP elements

2012-11-20 Thread Johnson, Eric
emu-devel] [PATCH 3/7] target-mips: add unions to access DSP > elements > > Instead of playing with bit shifting, add two unions (one for 32-bit > values, one for 64-bit ones) to access all the DSP elements with the > correct type. > > This make the code easier to read and less err

[Qemu-devel] [PATCH 3/7] target-mips: add unions to access DSP elements

2012-11-16 Thread Aurelien Jarno
Instead of playing with bit shifting, add two unions (one for 32-bit values, one for 64-bit ones) to access all the DSP elements with the correct type. This make the code easier to read and less error prone, and allow GCC to vectorize the code in some cases. Signed-off-by: Aurelien Jarno --- ta