Go to the documentation of this file. 1 #ifndef __ASM_GENERIC_GETORDER_H
2 #define __ASM_GENERIC_GETORDER_H
6 #include <linux/compiler.h>
13 int __get_order(
unsigned long size)
19 #if BITS_PER_LONG == 32
49 #define get_order(n) \
51 __builtin_constant_p(n) ? ( \
52 ((n) == 0UL) ? BITS_PER_LONG - PAGE_SHIFT : \
53 (((n) < (1UL << PAGE_SHIFT)) ? 0 : \
54 ilog2((n) - 1) - PAGE_SHIFT + 1) \