qemu/int128: add int128_urshift
commit613cf0fcbabee5ec34cab85a933eb3d46845a7cb
authorMatheus Ferst <matheus.ferst@eldorado.org.br>
Wed, 30 Mar 2022 17:59:26 +0000 (30 14:59 -0300)
committerDaniel Henrique Barboza <danielhb413@gmail.com>
Wed, 20 Apr 2022 21:00:30 +0000 (20 18:00 -0300)
tree5031fe9d261e1f24b9c43a99b539e5a731799136
parentf290a23868ee80c0cb8d27659e0c3b2a91437fbc
qemu/int128: add int128_urshift

Implement an unsigned right shift for Int128 values and add the same
tests cases of int128_rshift in the unit test.

Signed-off-by: Matheus Ferst <matheus.ferst@eldorado.org.br>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20220330175932.6995-3-matheus.ferst@eldorado.org.br>
[danielhb: fixed long lines in test_urshift()]
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
include/qemu/int128.h
tests/unit/test-int128.c