diff options
author | Leon Alrae <leon.alrae@imgtec.com> | 2014-10-22 14:00:29 +0100 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2014-10-24 14:07:51 +0100 |
commit | 74dda9876bdb4c5da5acf423656663ec15d90a38 (patch) | |
tree | 8d743589c34a39a4b060106722b658f4e5024089 /target-mips | |
parent | 71b7f54fdfa6a9bd56546b5c3996311b7b836636 (diff) |
target-mips: add ULL suffix in bitswap to avoid compiler warning
Signed-off-by: Leon Alrae <leon.alrae@imgtec.com>
Message-id: 1413982829-27225-1-git-send-email-leon.alrae@imgtec.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'target-mips')
-rw-r--r-- | target-mips/op_helper.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/target-mips/op_helper.c b/target-mips/op_helper.c index 5204ed87ca..9ec548cc02 100644 --- a/target-mips/op_helper.c +++ b/target-mips/op_helper.c @@ -267,12 +267,12 @@ target_ulong helper_mulshiu(CPUMIPSState *env, target_ulong arg1, static inline target_ulong bitswap(target_ulong v) { - v = ((v >> 1) & (target_ulong)0x5555555555555555) | - ((v & (target_ulong)0x5555555555555555) << 1); - v = ((v >> 2) & (target_ulong)0x3333333333333333) | - ((v & (target_ulong)0x3333333333333333) << 2); - v = ((v >> 4) & (target_ulong)0x0F0F0F0F0F0F0F0F) | - ((v & (target_ulong)0x0F0F0F0F0F0F0F0F) << 4); + v = ((v >> 1) & (target_ulong)0x5555555555555555ULL) | + ((v & (target_ulong)0x5555555555555555ULL) << 1); + v = ((v >> 2) & (target_ulong)0x3333333333333333ULL) | + ((v & (target_ulong)0x3333333333333333ULL) << 2); + v = ((v >> 4) & (target_ulong)0x0F0F0F0F0F0F0F0FULL) | + ((v & (target_ulong)0x0F0F0F0F0F0F0F0FULL) << 4); return v; } |