Lines Matching refs:size
11 * get_order - Determine the allocation order of a memory size
12 * @size: The size for which to get the order
25 * to hold an object of the specified size.
27 * The result is undefined if the size is 0.
29 static __always_inline __attribute_const__ int get_order(unsigned long size)
31 if (__builtin_constant_p(size)) {
32 if (!size)
35 if (size < (1UL << PAGE_SHIFT))
38 return ilog2((size) - 1) - PAGE_SHIFT + 1;
41 size--;
42 size >>= PAGE_SHIFT;
44 return fls(size);
46 return fls64(size);