mirror of
https://github.com/torvalds/linux.git
synced 2024-12-22 10:56:40 +00:00
64f1815507
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@ @@ #include <linux/kernel.h> @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: Ralf Baechle <ralf@linux-mips.org> |
||
---|---|---|
.. | ||
int.c | ||
Makefile | ||
pci.c | ||
platform.c | ||
proc.c | ||
prom.c | ||
reset.c | ||
setup.c | ||
time.c |