]> git.proxmox.com Git - mirror_qemu.git/commit
bitmap: refine and move BITMAP_{FIRST/LAST}_WORD_MASK
authorWei Yang <richard.weiyang@gmail.com>
Sat, 5 Mar 2016 13:47:08 +0000 (13:47 +0000)
committerMichael Tokarev <mjt@tls.msk.ru>
Sat, 8 Oct 2016 08:25:29 +0000 (11:25 +0300)
commitcb57fb37051b11d04f1ddce736b0ec3f936e978e
tree83b9551dfd911cc2d13a1e5a6f4526be06c79727
parent88071589e8c6665c40c39bdefc59ad615693b325
bitmap: refine and move BITMAP_{FIRST/LAST}_WORD_MASK

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 <richard.weiyang@gmail.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
include/qemu/bitmap.h
util/bitmap.c