mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-11-19 15:54:53 +00:00
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 |
||
|---|---|---|
| .. | ||
| atomic.h | ||
| bitmap.h | ||
| bitops.h | ||
| bswap.h | ||
| compiler.h | ||
| crc32c.h | ||
| cutils.h | ||
| fprintf-fn.h | ||
| host-utils.h | ||
| int128.h | ||
| log.h | ||
| mmap-alloc.h | ||
| module.h | ||
| osdep.h | ||
| queue.h | ||
| range.h | ||
| thread-posix.h | ||
| thread-win32.h | ||
| thread.h | ||
| timer.h | ||
| typedefs.h | ||