1
linux/arch/m68k/amiga
Julia Lawall 1a0caf41c0 m68k: 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: Geert Uytterhoeven <geert@linux-m68k.org>
2010-02-27 18:27:14 +01:00
..
amiints.c m68k: amiga core - Kill warn_unused_result warnings 2009-01-12 20:56:35 +01:00
amisound.c m68k: kill arch/m68k/amiga/amiga_ksyms.c 2008-02-05 09:44:23 -08:00
chipram.c PAGE_ALIGN(): correctly handle 64-bit values on 32-bit architectures 2008-07-24 10:47:21 -07:00
cia.c m68k: amiga core - Kill warn_unused_result warnings 2009-01-12 20:56:35 +01:00
config.c m68k: Use DIV_ROUND_CLOSEST 2010-02-27 18:27:14 +01:00
Makefile m68k: kill arch/m68k/amiga/amiga_ksyms.c 2008-02-05 09:44:23 -08:00
pcmcia.c m68k: kill arch/m68k/amiga/amiga_ksyms.c 2008-02-05 09:44:23 -08:00