OSDN Git Service

linux-user: Use DIV_ROUND_UP
authorLaurent Vivier <lvivier@redhat.com>
Tue, 31 May 2016 16:36:02 +0000 (18:36 +0200)
committerMichael Tokarev <mjt@tls.msk.ru>
Tue, 7 Jun 2016 15:19:25 +0000 (18:19 +0300)
commitb1b2db29bd6c3ed70c29778d8fec0f4bf6ae28ec
treec8af484d859a7ca88b29eaf304d8867ab6851fb5
parent806956834a898c0d068f116b58e72b0c5e226840
linux-user: 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: Riku Voipio <riku.voipio@iki.fi>
Signed-off-by: Laurent Vivier <lvivier@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
linux-user/syscall.c