hbitmap: Use DIV_ROUND_UP
commit30f549c2f30de65c7cbb30614b838d5478d6221b
authorLaurent Vivier <lvivier@redhat.com>
Tue, 31 May 2016 16:36:05 +0000 (31 18:36 +0200)
committerMichael Tokarev <mjt@tls.msk.ru>
Tue, 7 Jun 2016 15:19:25 +0000 (7 18:19 +0300)
tree17e9b84cbe1d7a404b6d3c001e4648858529f153
parent5029b969d1475fad8f294be6edaa66d280df3039
hbitmap: Use DIV_ROUND_UP

Replace (((n) + (d) - 1) /(d)) by DIV_ROUND_UP(n,d).

This patch is the result of coccinelle script
scripts/coccinelle/round.cocci

CC: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Laurent Vivier <lvivier@redhat.com>
Reviewed-by: John Snow <jsnow@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
tests/test-hbitmap.c