repo.or.cz
/
qemu
/
ar7.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
hw/core: Fix fit_load_fdt() error API violations
[qemu/ar7.git]
/
scripts
/
coccinelle
/
round.cocci
blob
ed06773289d0fb2aa06cb2314f3f3c8977575b7d
1
// Use macro DIV_ROUND_UP instead of (((n) + (d) - 1) /(d))
2
@@
3
expression e1;
4
expression e2;
5
@@
6
(
7
- ((e1) + e2 - 1) / (e2)
8
+ DIV_ROUND_UP(e1,e2)
9
|
10
- ((e1) + (e2 - 1)) / (e2)
11
+ DIV_ROUND_UP(e1,e2)
12
)
13
14
@@
15
expression e1;
16
expression e2;
17
@@
18
-(DIV_ROUND_UP(e1,e2))
19
+DIV_ROUND_UP(e1,e2)