diff options
author | Richard Henderson <rth@twiddle.net> | 2015-09-14 13:38:53 -0700 |
---|---|---|
committer | Richard Henderson <rth@twiddle.net> | 2015-09-15 07:45:33 -0700 |
commit | 42fedbca8f5b54324ed89be3484d4a3dc9946387 (patch) | |
tree | f9d1885009fa39b8495d88cb63b593ad5aa6e084 /target-arm/helper.c | |
parent | 652a4b7e736f432a6809d1d2b52d169ab0b9aa3b (diff) | |
download | hqemu-42fedbca8f5b54324ed89be3484d4a3dc9946387.zip hqemu-42fedbca8f5b54324ed89be3484d4a3dc9946387.tar.gz |
target-arm: Use new revbit functions
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'target-arm/helper.c')
-rw-r--r-- | target-arm/helper.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/target-arm/helper.c b/target-arm/helper.c index 65b9ff5..12ea88f 100644 --- a/target-arm/helper.c +++ b/target-arm/helper.c @@ -5044,17 +5044,7 @@ uint32_t HELPER(udiv)(uint32_t num, uint32_t den) uint32_t HELPER(rbit)(uint32_t x) { - x = ((x & 0xff000000) >> 24) - | ((x & 0x00ff0000) >> 8) - | ((x & 0x0000ff00) << 8) - | ((x & 0x000000ff) << 24); - x = ((x & 0xf0f0f0f0) >> 4) - | ((x & 0x0f0f0f0f) << 4); - x = ((x & 0x88888888) >> 3) - | ((x & 0x44444444) >> 1) - | ((x & 0x22222222) << 1) - | ((x & 0x11111111) << 3); - return x; + return revbit32(x); } #if defined(CONFIG_USER_ONLY) |