]> Git Repo - qemu.git/blame - scripts/coccinelle/round.cocci
trace: avoid "is" with a literal Python 3.8 warnings
[qemu.git] / scripts / coccinelle / round.cocci
CommitLineData
db718b4b
LV
1// Use macro DIV_ROUND_UP instead of (((n) + (d) - 1) /(d))
2@@
3expression e1;
4expression 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@@
15expression e1;
16expression e2;
17@@
18-(DIV_ROUND_UP(e1,e2))
19+DIV_ROUND_UP(e1,e2)
This page took 0.154966 seconds and 4 git commands to generate.