Files
linux/arch/alpha/kernel
Julia Lawall 04d8a9db89 arch/alpha/kernel/sys_ruffian.c: 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>
Cc: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
Cc: Richard Henderson <rth@twiddle.net>
Signed-off-by: Matt Turner <mattst88@gmail.com>
2009-11-30 15:37:25 -05:00
..
2009-01-15 16:39:40 -08:00
2008-04-17 10:42:34 -04:00
2009-05-02 15:36:10 -07:00
2009-05-02 15:36:10 -07:00
2009-05-02 15:36:10 -07:00
2009-05-02 15:36:10 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2009-01-15 16:39:40 -08:00
2009-05-02 15:36:10 -07:00
2008-04-28 08:58:27 -07:00
2005-04-16 15:20:36 -07:00
2009-06-11 21:36:08 -04:00
2009-01-29 18:04:44 -08:00
2009-03-19 19:29:36 -07:00
2009-04-01 08:59:16 -07:00
2009-09-23 18:13:10 -07:00
2009-05-02 15:36:10 -07:00
2009-07-12 12:22:34 -07:00
2009-01-29 18:04:44 -08:00