aboutsummaryrefslogtreecommitdiff
path: root/Documentation/networking/can.txt
diff options
context:
space:
mode:
authorJulia Lawall <julia@diku.dk>2009-08-02 10:47:27 +0200
committerHirokazu Takata <takata@linux-m32r.org>2009-11-04 08:31:50 +0900
commit560235857fb79da48d36e8f866a0ee3b10a232bf (patch)
tree5635f5ec3fca87f35caf0ef0bff7fdbc21782ff1 /Documentation/networking/can.txt
parentb419148e567728f6af0c3b01965c1cc141e3e13a (diff)
arch/m32r: Use DIV_ROUND_CLOSEST
The kernel.h macro DIV_ROUND_CLOSEST performs the computation (x + d/2)/d but is perhaps more readable. The semantic patch that makes this change is as follows: (http://www.emn.fr/x-info/coccinelle/) // <smpl> @haskernel@ @@ @depends on haskernel@ expression x,__divisor; @@ - (((x) + ((__divisor) / 2)) / (__divisor)) + DIV_ROUND_CLOSEST(x,__divisor) // </smpl> Signed-off-by: Julia Lawall <julia@diku.dk> Signed-off-by: Hirokazu Takata <takata@linux-m32r.org>
Diffstat (limited to 'Documentation/networking/can.txt')
0 files changed, 0 insertions, 0 deletions