OSDN Git Service

tcg: Implement tcg_gen_{h,w}swap_{i32,i64}
authorRichard Henderson <richard.henderson@linaro.org>
Thu, 28 Apr 2022 09:46:59 +0000 (11:46 +0200)
committerThomas Huth <thuth@redhat.com>
Wed, 4 May 2022 06:47:19 +0000 (08:47 +0200)
commit46be8425fff0cc7f86ee7e1102aa3451fdae9ec8
treeedf172ae8cc3723508ad92be6e3a22cf515aafa2
parentd98ed7d96e2951b5e5c92b0f1de9aa2e58889019
tcg: Implement tcg_gen_{h,w}swap_{i32,i64}

Swap half-words (16-bit) and words (32-bit) within a larger value.
Mirrors functions of the same names within include/qemu/bitops.h.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: David Hildenbrand <david@redhat.com>
Reviewed-by: David Miller <dmiller423@gmail.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Message-Id: <20220428094708.84835-5-david@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
include/tcg/tcg-op.h
tcg/tcg-op.c