aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorAurelien Jarno <aurelien@aurel32.net>2013-01-01 18:02:23 +0100
committerAurelien Jarno <aurelien@aurel32.net>2013-01-31 23:29:38 +0100
commit652613ab5ae4559b481c612010b407e1c2216f36 (patch)
tree5e36f1dc2590876c2b688dce7a18c15ea1b6ce90 /scripts
parentad153f153da08f5e08bc8e433c0070af53e34e0a (diff)
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 error prone, and allow GCC to vectorize the code in some cases. Reviewed-by: Eric Johnson <ericj@mips.com> Reviewed-by: Richard Henderson <rth@twiddle.net> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions