Merge remote-tracking branch 'remotes/mdroth/tags/qga-pull-2019-11-04-tag' into staging
[qemu/ar7.git] / scripts / coccinelle / round.cocci
blobed06773289d0fb2aa06cb2314f3f3c8977575b7d
1 // Use macro DIV_ROUND_UP instead of (((n) + (d) - 1) /(d))
2 @@
3 expression e1;
4 expression e2;
5 @@
7 - ((e1) + e2 - 1) / (e2)
8 + DIV_ROUND_UP(e1,e2)
10 - ((e1) + (e2 - 1)) / (e2)
11 + DIV_ROUND_UP(e1,e2)
15 expression e1;
16 expression e2;
18 -(DIV_ROUND_UP(e1,e2))
19 +DIV_ROUND_UP(e1,e2)