Re: [Qemu-devel] [PATCH 00/12] Avoid shifting left into sign bit

2014-03-10 Thread Michael S. Tsirkin
On Mon, Mar 10, 2014 at 07:10:36PM +, Peter Maydell wrote: > This is a set of patches which silence clang -fsanitize=undefined > warnings about shifting left into the sign bit of a signed value. > Typically this is the result of "1 << 31" and similar constructs; > the fix is to add a "U" suffix

[Qemu-devel] [PATCH 00/12] Avoid shifting left into sign bit

2014-03-10 Thread Peter Maydell
This is a set of patches which silence clang -fsanitize=undefined warnings about shifting left into the sign bit of a signed value. Typically this is the result of "1 << 31" and similar constructs; the fix is to add a "U" suffix to the 1 so that we do unsigned arithmetic rather than signed arithmet