diff options
author | Robert P. J. Day <rpjday@mindspring.com> | 2007-10-17 08:29:32 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-17 17:42:56 +0200 |
commit | b311e921b385b5a848f0806df16276aca1ecae07 (patch) | |
tree | 957947e319b23150ddbbf7db52f9bdd24b6cdba5 /lib | |
parent | make dmapool code use __set_current_state() (diff) | |
download | linux-b311e921b385b5a848f0806df16276aca1ecae07.tar.xz linux-b311e921b385b5a848f0806df16276aca1ecae07.zip |
Add a "rounddown_pow_of_two" routine to log2.h
To go along with the existing "roundup_pow_of_two" routine, add one for
rounding down since that operation appears to crop up on a regular basis in
the source tree.
[m.kozlowski@tuxland.pl: fix unbalanced parentheses]
Signed-off-by: Robert P. J. Day <rpjday@mindspring.com>
Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions