]> git.proxmox.com Git - mirror_qemu.git/commit - target-i386/cpu.h
target-i386: Avoid shifting left into sign bit
authorPeter Maydell <peter.maydell@linaro.org>
Mon, 17 Mar 2014 16:00:30 +0000 (16:00 +0000)
committerMichael Tokarev <mjt@tls.msk.ru>
Thu, 27 Mar 2014 15:22:49 +0000 (19:22 +0400)
commit2cd49cbfab0dd294de421893048ab614518fa263
tree0411e10ca110213a2a8b6044c37d8456150a50ba
parente939c6ed619e2cf98c379318f6ee389c97163f18
target-i386: Avoid shifting left into sign bit

Add 'U' suffixes where necessary to avoid (1 << 31) which
shifts left into the sign bit, which is undefined behaviour.
Add the suffix also for other constants in the same groupings
even if they don't shift into bit 31, for consistency.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
target-i386/cpu.h