Files
OpenCellular/include/lib
Julius Werner 7baa7bcaf5 Make div_round_up() correct for divisors that are not a power of 2
The current div_round_up() implementation relies on round_up() which
only works correctly for boundaries that are a power of 2. It is
documented as such, but this still seems dangerously easy to overlook,
especially since many other environments (e.g. the Linux kernel) have a
similar macro without these limitations.

There is a different way to calculate this that can deal with all kinds
of divisors without other drawbacks, so let's just use that instead.

Change-Id: Id382736683f5d4e880ef00c53cfa23a2f9208440
Signed-off-by: Julius Werner <jwerner@chromium.org>
2018-01-22 13:56:13 -08:00
..
2017-11-30 17:45:09 +00:00
2017-01-16 17:26:04 +00:00
2017-07-12 14:45:31 +01:00
2017-10-13 12:39:08 +01:00
2017-06-09 14:47:52 +01:00
2017-05-03 09:39:28 +01:00
2017-05-03 09:39:28 +01:00
2017-05-03 09:39:28 +01:00
2017-05-03 09:39:28 +01:00
2017-05-03 09:39:28 +01:00
2017-05-03 09:39:28 +01:00
2017-09-25 13:32:20 +01:00