coccinelle: use macro DIV_ROUND_UP instead of (((n) + (d) - 1) /(d))
commitdb718b4b150dd8a732e2b26368eba510b6887f01
authorLaurent Vivier <lvivier@redhat.com>
Tue, 31 May 2016 16:35:50 +0000 (31 18:35 +0200)
committerMichael Tokarev <mjt@tls.msk.ru>
Tue, 7 Jun 2016 15:19:24 +0000 (7 18:19 +0300)
tree61e18f13ba84a353f40d0a5654a308e2c1a2508d
parente0ca2ed562d50e6aa02b15431d009fe165cff159
coccinelle: use macro DIV_ROUND_UP instead of (((n) + (d) - 1) /(d))

sample from http://coccinellery.org/

Signed-off-by: Laurent Vivier <lvivier@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
scripts/coccinelle/round.cocci [new file with mode: 0644]