From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Mon, 24 Nov 2014 17:10:30 -0500 Subject: [U-Boot] [U-Boot, v3, 1/6] replace DIV_ROUND with DIV_ROUND_CLOSEST In-Reply-To: <1415297011-20327-2-git-send-email-yamada.m@jp.panasonic.com> References: <1415297011-20327-2-git-send-email-yamada.m@jp.panasonic.com> Message-ID: <20141124221030.GK21184@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 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: