1
0
Files
linux/include/linux
Eric Paris 686a0f3d71 kernel: rounddown helper function
The roundup() helper function will round a given value up to a multiple of
another given value.  aka  roundup(11, 7) would give 14 = 7 * 2.  This new
function does the opposite.  It will round a given number down to the
nearest multiple of the second number: rounddown(11, 7) would give 7.

I need this in some future SELinux code and can carry the macro myself, but
figured I would put it in the core kernel so others might find and use it
if need be.

Signed-off-by: Eric Paris <eparis@redhat.com>
Signed-off-by: James Morris <jmorris@namei.org>
2010-10-21 10:12:53 +11:00
..
2010-09-08 10:50:00 -06:00
2010-09-09 18:57:23 -07:00
2005-04-16 15:20:36 -07:00
2010-07-12 14:41:40 +02:00
2010-10-11 18:15:28 -07:00
2010-10-21 10:12:53 +11:00
2010-09-09 18:57:24 -07:00
2010-09-09 09:05:06 -07:00
2010-07-02 21:59:08 -07:00
2010-09-08 15:04:10 +02:00
2010-09-27 20:24:54 -07:00
2010-09-13 10:26:52 +02:00