[U-Boot] [U-Boot, v3, 1/6] replace DIV_ROUND with DIV_ROUND_CLOSEST

Tom Rini trini at ti.com
Mon Nov 24 23:10:30 CET 2014


On Fri, Nov 07, 2014 at 03:03:26AM +0900, Masahiro Yamada wrote:

> The Linux-compatible macro DIV_ROUND_CLOSEST is a bit more flexible
> and safer than DIV_ROUND.
> 
> For example,
>   foo = DIV_ROUND_CLOSEST(x, y++)
> works expectedly, but
>   foo = DIV_ROUND(x, y++)
> does not. (y is incremented twice.)
> 
> Signed-off-by: Masahiro Yamada <yamada.m at jp.panasonic.com>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20141124/48a5d2c4/attachment.pgp>


More information about the U-Boot mailing list