From: Tom Rini <trini@ti.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [U-Boot, v3, 1/6] replace DIV_ROUND with DIV_ROUND_CLOSEST
Date: Mon, 24 Nov 2014 17:10:30 -0500 [thread overview]
Message-ID: <20141124221030.GK21184@bill-the-cat> (raw)
In-Reply-To: <1415297011-20327-2-git-send-email-yamada.m@jp.panasonic.com>
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@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>
next prev parent reply other threads:[~2014-11-24 22:10 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-06 18:03 [U-Boot] [PATCH v3 0/6] Collect utility macros to include/linux/kernel.h synced with Linux Masahiro Yamada
2014-11-06 18:03 ` [U-Boot] [PATCH v3 1/6] replace DIV_ROUND with DIV_ROUND_CLOSEST Masahiro Yamada
2014-11-24 22:10 ` Tom Rini [this message]
2014-11-06 18:03 ` [U-Boot] [PATCH v3 2/6] include/common.h: remove DIV_ROUND definition Masahiro Yamada
2014-11-24 22:10 ` [U-Boot] [U-Boot, v3, " Tom Rini
2014-11-06 18:03 ` [U-Boot] [PATCH v3 3/6] include: move various macros to include/linux/kernel.h Masahiro Yamada
2014-11-24 22:10 ` [U-Boot] [U-Boot, v3, " Tom Rini
2014-11-06 18:03 ` [U-Boot] [PATCH v3 4/6] linux/kernel.h: import more macros Masahiro Yamada
2014-11-24 22:10 ` [U-Boot] [U-Boot,v3,4/6] " Tom Rini
2014-11-06 18:03 ` [U-Boot] [PATCH v3 5/6] linux/kernel.h: add typechecking to roundup macro Masahiro Yamada
2014-11-24 22:10 ` [U-Boot] [U-Boot, v3, " Tom Rini
2014-11-06 18:03 ` [U-Boot] [PATCH v3 6/6] linux/kernel.h: sync min, max, min3, max3 macros with Linux Masahiro Yamada
2014-11-24 22:10 ` [U-Boot] [U-Boot, v3, " Tom Rini
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20141124221030.GK21184@bill-the-cat \
--to=trini@ti.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox