]> git.baikalelectronics.ru Git - kernel.git/commit
log2.h: Define order_base_2() macro for convenience.
authorRobert P. J. Day <rpjday@crashcourse.ca>
Wed, 6 Feb 2008 09:36:54 +0000 (01:36 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Wed, 6 Feb 2008 18:41:03 +0000 (10:41 -0800)
commitbec40c2f5927e1f6acb35d58e8e2dca2e4437538
tree67fc0eb97f706d8cb39485dba50da9f9918c3f3f
parentc19942479fcfe61b3ad88ce620a1b98bbaca5523
log2.h: Define order_base_2() macro for convenience.

Given a number of places in the tree that need to calculate this value
explicitly, might as well just create a macro for it.

(akpm: must be implemented as a macro for callee typeof() usage)

Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/log2.h