Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
tcg/tcg-op: Document wswap_i64() byte pattern
Document wswap_i64(), added in commit 46be842
("tcg: Implement tcg_gen_{h,w}swap_{i32,i64}").

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20230823145542.79633-8-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 b8976aa commit ad262fb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tcg/tcg-op.c
Expand Up @@ -1950,6 +1950,11 @@ void tcg_gen_hswap_i64(TCGv_i64 ret, TCGv_i64 arg)
tcg_temp_free_i64(t1);
}

/*
* wswap_i64: Swap 32-bit words within a 64-bit value.
*
* Byte pattern: abcdefgh -> efghabcd
*/
void tcg_gen_wswap_i64(TCGv_i64 ret, TCGv_i64 arg)
{
/* Swapping 2 32-bit elements is a rotate. */
Expand Down

0 comments on commit ad262fb

Please sign in to comment.