On Wed, Oct 26, 2016 at 08:20:10AM -0700, Richard Henderson wrote: > On 10/25/2016 11:26 PM, Nikunj A Dadhania wrote: > > All the variants for rol/ror have a bug in case where the shift == 0. > > For example rol32, would generate: > > > > return (word << 0) | (word >> 32); > > > > Which though works, would be flagged as a runtime error on clang's > > sanitizer. > > > > Suggested-by: Richard Henderson <[email protected]> > > Signed-off-by: Nikunj A Dadhania <[email protected]> > > --- > > include/qemu/bitops.h | 16 ++++++++-------- > > 1 file changed, 8 insertions(+), 8 deletions(-) > > Reviewed-by: Richard Henderson <[email protected]>
This looks fine to me too, but I'm not sure if it should be going via
my tree or not.
--
David Gibson | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
| _way_ _around_!
http://www.ozlabs.org/~dgibson
signature.asc
Description: PGP signature
