Files
kernel/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-08-12 06:38:24 +10:00
2010-09-08 10:50:00 -06:00
2010-08-12 08:43:30 -07:00
2010-08-12 08:43:30 -07:00
2010-08-12 08:43:30 -07:00
2010-08-18 01:09:01 -04:00
2010-09-09 18:57:23 -07:00
2010-08-12 04:14:05 +01:00
2010-08-18 08:35:46 -04:00
2010-08-11 09:23:22 +02:00
2010-08-11 18:21:02 +02:00
2010-08-09 20:45:05 -07:00
2010-08-10 11:49:21 -07:00
2010-08-12 11:27:58 +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-08-09 16:48:45 -04:00
2010-09-09 09:05:06 -07:00
2010-08-11 00:29:47 -04:00
2010-08-09 16:47:27 -04:00
2010-09-08 15:04:10 +02:00
2010-09-27 20:24:54 -07:00
2010-08-09 16:48:44 -04:00
2010-08-18 08:35:47 -04:00
2010-08-11 08:59:02 -07:00
2010-09-13 10:26:52 +02:00