Re: [Qemu-devel] [PATCH 16/16] hbitmap: Use DIV_ROUND_UP

2016-06-03 Thread John Snow
On 05/31/2016 12:36 PM, Laurent Vivier wrote: > 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 > Signed-off-by: Laurent Vivier > --- > tests/test-hbitmap.c | 6 +++--- > 1 file chan

[Qemu-devel] [PATCH 16/16] hbitmap: Use DIV_ROUND_UP

2016-05-31 Thread Laurent Vivier
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 Signed-off-by: Laurent Vivier --- tests/test-hbitmap.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test-hbitma