summaryrefslogtreecommitdiffstats
path: root/target-arm/cpu.h
diff options
context:
space:
mode:
authorPeter Maydell2016-06-17 16:23:45 +0200
committerPeter Maydell2016-06-17 16:23:51 +0200
commitb355438de52d0782983bf4bdc47936189a0c988b (patch)
tree2a93d70d0440c5506d1b231af1d930672d4d11a9 /target-arm/cpu.h
parentmigration: Define VMSTATE_UINT64_2DARRAY (diff)
downloadqemu-b355438de52d0782983bf4bdc47936189a0c988b.tar.gz
qemu-b355438de52d0782983bf4bdc47936189a0c988b.tar.xz
qemu-b355438de52d0782983bf4bdc47936189a0c988b.zip
bitops.h: Implement half-shuffle and half-unshuffle ops
A half-shuffle operation takes a word with zeros in the high half: 0000 0000 0000 0000 ABCD EFGH IJKL MNOP and spreads the bits out so they are in every other bit of the word: 0A0B 0C0D 0E0F 0G0H 0I0J 0K0L 0M0N 0O0P A half-unshuffle performs the reverse operation. Provide functions in bitops.h which implement these operations for 32-bit and 64-bit inputs, and add tests for them. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Shannon Zhao <shannon.zhao@linaro.org> Tested-by: Shannon Zhao <shannon.zhao@linaro.org> Message-id: 1465915112-29272-3-git-send-email-peter.maydell@linaro.org
Diffstat (limited to 'target-arm/cpu.h')
0 files changed, 0 insertions, 0 deletions