Re: [Qemu-devel] [PATCH] bitmap: refine and move BITMAP_{FIRST/LAST}_WORD_MASK

2016-09-29 Thread Wei Yang
On Thu, Sep 29, 2016 at 07:11:39PM +0300, Michael Tokarev wrote: >05.03.2016 16:47, Wei Yang wrote: >>According to linux kernel commit <89c1e79eb30> ("linux/bitmap.h: improve >>BITMAP_{LAST,FIRST}_WORD_MASK"), these two macro could be improved. >> >>This patch takes this change and also move them a

Re: [Qemu-devel] [PATCH] bitmap: refine and move BITMAP_{FIRST/LAST}_WORD_MASK

2016-09-29 Thread Michael Tokarev
05.03.2016 16:47, Wei Yang wrote: According to linux kernel commit <89c1e79eb30> ("linux/bitmap.h: improve BITMAP_{LAST,FIRST}_WORD_MASK"), these two macro could be improved. This patch takes this change and also move them all in header file. Applied to -trivial, thank you! /mjt

Re: [Qemu-devel] [PATCH] bitmap: refine and move BITMAP_{FIRST/LAST}_WORD_MASK

2016-09-14 Thread Paolo Bonzini
On 14/09/2016 09:33, Michael Tokarev wrote: > Is this (quite old) patch still relevant? Yes, I think it's a nice cleanup. The interesting bit is that it expands nbits exactly once. Paolo > Thanks, > > /mjt > > 05.03.2016 16:47, Wei Yang wrote: >> According to linux kernel commit <89c1e79eb3

Re: [Qemu-devel] [PATCH] bitmap: refine and move BITMAP_{FIRST/LAST}_WORD_MASK

2016-09-14 Thread Michael Tokarev
Is this (quite old) patch still relevant? Thanks, /mjt 05.03.2016 16:47, Wei Yang wrote: According to linux kernel commit <89c1e79eb30> ("linux/bitmap.h: improve BITMAP_{LAST,FIRST}_WORD_MASK"), these two macro could be improved. This patch takes this change and also move them all in header f

[Qemu-devel] [PATCH] bitmap: refine and move BITMAP_{FIRST/LAST}_WORD_MASK

2016-03-05 Thread Wei Yang
According to linux kernel commit <89c1e79eb30> ("linux/bitmap.h: improve BITMAP_{LAST,FIRST}_WORD_MASK"), these two macro could be improved. This patch takes this change and also move them all in header file. Signed-off-by: Wei Yang --- include/qemu/bitmap.h | 7 ++- util/bitmap.c |