repo.or.cz
/
systemd_ALT.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
1:255.13-alt1
[systemd_ALT.git]
/
coccinelle
/
div-round-up.cocci
blob
609ec879d3bfdb329b718098e8303230093915af
1
/* SPDX-License-Identifier: LGPL-2.1-or-later */
2
@@
3
expression x, y;
4
@@
5
- ((x + y - 1) / y)
6
+ DIV_ROUND_UP(x, y)
7
@@
8
expression x, y;
9
@@
10
- ((x + (y - 1)) / y)
11
+ DIV_ROUND_UP(x, y)
12
@@
13
expression x, y;
14
@@
15
- (x + y - 1) / y
16
+ DIV_ROUND_UP(x, y)
17
@@
18
expression x, y;
19
@@
20
- (x + (y - 1)) / y
21
+ DIV_ROUND_UP(x, y)