aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorsimran singhal <[email protected]>2017-02-21 23:58:26 +0530
committerGreg Kroah-Hartman <[email protected]>2017-03-06 09:16:58 +0100
commit7dfc6971243430dd9edef3c4c0694d3a97b321f7 (patch)
tree7c269003f170c6f614383c7f9ec0eb4546caf8ae /tools/perf/scripts/python
parent427fda4e5c3406fcca5ab87aabccdbb2840b7544 (diff)
staging: comedi: Using macro DIV_ROUND_UP
The macro DIV_ROUND_UP performs the computation (((n) + (d) - 1) /(d)). It clarifies the divisor calculations. This occurence was detected using the coccinelle script: @@ expression e1; expression e2; @@ ( - ((e1) + e2 - 1) / (e2) + DIV_ROUND_UP(e1,e2) | - ((e1) + (e2 - 1)) / (e2) + DIV_ROUND_UP(e1,e2) ) Signed-off-by: simran singhal <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions