aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorAmitoj Kaur Chawla <[email protected]>2016-02-19 20:57:15 +0530
committerGreg Kroah-Hartman <[email protected]>2016-02-20 15:25:58 -0800
commit2ead7b32aadc83833d7cf6e9751ef56b89e90462 (patch)
treedf9720f1dc9dfe3609b5644afed33b1358b8fa4d /tools/perf/scripts/python/bin
parentb7c57dd54a4531eccb94688907f9b14bcad12c18 (diff)
staging: comedi: drivers: Use DIV_ROUND_CLOSEST
The kernel.h macro DIV_ROUND_CLOSEST performs the computation `(x +d/2)/d` but is perhaps more readable. The Coccinelle script used is as follows: // <smpl> @@ expression x,__divisor; @@ - (((x) + ((__divisor) / 2)) / (__divisor)) + DIV_ROUND_CLOSEST(x,__divisor) // </smpl> Signed-off-by: Amitoj Kaur Chawla <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions