#ifndef __ASM_GENERIC_GETORDER_H #define __ASM_GENERIC_GETORDER_H #ifndef __ASSEMBLY__ #include <linux/compiler.h> #include <linux/log2.h> /* * Runtime evaluation of get_order() */
static inline __attribute_const__ int __get_order(unsigned long size) { int order; size--; size >>= PAGE_SHIFT; #if BITS_PER_LONG == 32 order = fls(size); #else order = fls64(size); #endif return order; }Contributors
Person | Tokens | Prop | Commits | CommitProp |
David Howells | 23 | 47.92% | 2 | 40.00% |
Stephen Rothwell | 16 | 33.33% | 1 | 20.00% |
Linus Torvalds | 8 | 16.67% | 1 | 20.00% |
Arnd Bergmann | 1 | 2.08% | 1 | 20.00% |
Total | 48 | 100.00% | 5 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
David Howells | 35 | 44.30% | 2 | 33.33% |
Stephen Rothwell | 30 | 37.97% | 1 | 16.67% |
Linus Torvalds | 9 | 11.39% | 1 | 16.67% |
Arnd Bergmann | 4 | 5.06% | 1 | 16.67% |
Joerg Roedel | 1 | 1.27% | 1 | 16.67% |
Total | 79 | 100.00% | 6 | 100.00% |