Re: [Qemu-devel] [PATCH] bitmap: get last word mask from nr directly

2019-06-13 Thread Wei Yang
On Thu, Apr 25, 2019 at 11:28:31AM +0800, Wei Yang wrote: >The value left in nr is the number of bits for the last word, which >could be calculate the last word mask directly. > >Remove the unnecessary size. Ping... > >Signed-off-by: Wei Yang >--- > util/bitmap.c | 6 ++ > 1 file changed, 2 i

[Qemu-devel] [PATCH] bitmap: get last word mask from nr directly

2019-04-24 Thread Wei Yang
The value left in nr is the number of bits for the last word, which could be calculate the last word mask directly. Remove the unnecessary size. Signed-off-by: Wei Yang --- util/bitmap.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/util/bitmap.c b/util/bitmap.c inde