Skip to content

Commit

Permalink
tcg/tcg-op: Document bswap32_i32() byte pattern
Browse files Browse the repository at this point in the history
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20230823145542.79633-4-philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
  • Loading branch information
philmd authored and rth7680 committed Aug 24, 2023
1 parent 8b07880 commit 9296455
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tcg/tcg-op.c
Original file line number Diff line number Diff line change
Expand Up @@ -1078,6 +1078,11 @@ void tcg_gen_bswap16_i32(TCGv_i32 ret, TCGv_i32 arg, int flags)
}
}

/*
* bswap32_i32: 32-bit byte swap on a 32-bit value.
*
* Byte pattern: abcd -> dcba
*/
void tcg_gen_bswap32_i32(TCGv_i32 ret, TCGv_i32 arg)
{
if (TCG_TARGET_HAS_bswap32_i32) {
Expand Down

0 comments on commit 9296455

Please sign in to comment.