Home
last modified time | relevance | path

Searched hist:"4515992 fc7849c51997e3ff2d00352e36e14ebd7" (Results 1 – 3 of 3) sorted by relevance

/openbmc/u-boot/lib/
H A Dstrmhz.cdiff 4515992fc7849c51997e3ff2d00352e36e14ebd7 Thu Nov 06 12:03:26 CST 2014 Masahiro Yamada <yamada.m@jp.panasonic.com> replace DIV_ROUND with DIV_ROUND_CLOSEST

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@jp.panasonic.com>
/openbmc/u-boot/drivers/misc/
H A Dmxc_ocotp.cdiff 4515992fc7849c51997e3ff2d00352e36e14ebd7 Thu Nov 06 12:03:26 CST 2014 Masahiro Yamada <yamada.m@jp.panasonic.com> replace DIV_ROUND with DIV_ROUND_CLOSEST

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@jp.panasonic.com>
/openbmc/u-boot/arch/arm/cpu/arm926ejs/mxs/
H A Dspl_power_init.cdiff 4515992fc7849c51997e3ff2d00352e36e14ebd7 Thu Nov 06 12:03:26 CST 2014 Masahiro Yamada <yamada.m@jp.panasonic.com> replace DIV_ROUND with DIV_ROUND_CLOSEST

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@jp.panasonic.com>