remarkable-linux/arch/m32r
Julia Lawall 560235857f 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>
2009-11-04 08:31:50 +09:00
..
boot kbuild: use INSTALLKERNEL to select customized installkernel script 2009-09-20 12:18:14 +02:00
configs eeprom: More consistent symbol names 2009-01-26 21:19:57 +01:00
include/asm m32r: define ioread* and iowrite* macros 2009-10-04 12:02:36 +09:00
kernel arch/m32r: Use DIV_ROUND_CLOSEST 2009-11-04 08:31:50 +09:00
lib m32r: export delay loop symbols 2009-10-04 12:02:36 +09:00
mm m32r: Fix set_memory() for DISCONTIGMEM 2009-10-04 12:02:36 +09:00
oprofile oprofile: more whitespace fixes 2008-10-15 20:55:51 +02:00
platforms m32r: remove obsolete hw_interrupt_type 2009-06-16 19:47:46 -07:00
Kconfig m32r: convert to use arch_gettimeoffset() 2009-09-22 07:17:43 -07:00
Kconfig.debug
Makefile