While reviewing a recent patch from Richard optimizing deposit() [*] I ended looking at the *swap friends, taking some notes, which then evolved to proper documentation.
[*] https://lore.kernel.org/qemu-devel/20230816145547.477974-3-richard.hender...@linaro.org/ Philippe Mathieu-Daudé (7): tcg/tcg-op: Document bswap16() byte pattern tcg/tcg-op: Document bswap32() byte pattern tcg/tcg-op: Document bswap64() byte pattern tcg/tcg-op: Document hswap() byte pattern tcg/tcg-op: Document wswap() byte pattern tcg/tcg-op: Document deposit_z() target/cris: Fix a typo in gen_swapr() docs/devel/tcg-ops.rst | 12 ++++++ target/cris/translate.c | 20 +++++---- tcg/tcg-op.c | 96 +++++++++++++++++++++++++++++++---------- 3 files changed, 96 insertions(+), 32 deletions(-) -- 2.41.0