unicorn/qemu/include/qemu
Peter Maydell f893dacef0
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.

Backports commit b355438de52d0782983bf4bdc47936189a0c988b from qemu
2018-02-24 19:02:36 -05:00
..
atomic.h atomics: do not emit consume barrier for atomic_rcu_read 2018-02-24 03:28:11 -05:00
bitmap.h memory: RCU ram_list.dirty_memory[] for safe RAM hotplug 2018-02-22 15:38:03 -05:00
bitops.h bitops.h: Implement half-shuffle and half-unshuffle ops 2018-02-24 19:02:36 -05:00
bswap.h Move HOST_LONG_BITS from qemu-common.h to qemu/osdep.h 2018-02-21 23:10:43 -05:00
compiler.h compiler.h: add QEMU_ALIGNED() to enforce struct alignment 2018-02-24 17:32:43 -05:00
crc32c.h import 2015-08-21 15:04:50 +08:00
cutils.h util: move declarations out of qemu-common.h 2018-02-22 09:25:48 -05:00
fprintf-fn.h Stop including qemu-common.h in memory.h 2018-02-17 15:23:16 -05:00
host-utils.h host-util: Add power calculation functions 2018-02-17 15:23:35 -05:00
int128.h Automated leading tab to spaces conversion. 2017-01-21 12:28:22 +11:00
log.h log: move qemu_log_close/qemu_log_flush from header to log.c 2018-02-22 11:13:17 -05:00
mmap-alloc.h exec: factor out duplicate mmap code 2018-02-17 15:24:03 -05:00
module.h cleanup qemu/include/qemu/module.h 2017-01-25 00:20:08 +08:00
osdep.h osdep: Move default qemu_hw_version() value to a macro 2018-02-24 03:16:34 -05:00
queue.h import 2015-08-21 15:04:50 +08:00
range.h platform.h move #3 2017-01-21 00:13:21 +11:00
thread-posix.h remove mutex code 2017-01-20 15:44:03 +08:00
thread-win32.h remove mutex code 2017-01-20 15:44:03 +08:00
thread.h platform.h move #3 2017-01-21 00:13:21 +11:00
timer.h include: move CPU-related definitions out of qemu-common.h 2018-02-24 00:33:49 -05:00
typedefs.h include/qemu/osdep.h: Don't include qapi/error.h 2018-02-21 23:08:18 -05:00