#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 | david howells | 23 | 47.92% | 2 | 40.00% |
| stephen rothwell | stephen rothwell | 16 | 33.33% | 1 | 20.00% |
| linus torvalds | linus torvalds | 8 | 16.67% | 1 | 20.00% |
| arnd bergmann | arnd bergmann | 1 | 2.08% | 1 | 20.00% |
| Total | 48 | 100.00% | 5 | 100.00% |
| Person | Tokens | Prop | Commits | CommitProp | |
| david howells | david howells | 35 | 44.30% | 2 | 33.33% |
| stephen rothwell | stephen rothwell | 30 | 37.97% | 1 | 16.67% |
| linus torvalds | linus torvalds | 9 | 11.39% | 1 | 16.67% |
| arnd bergmann | arnd bergmann | 4 | 5.06% | 1 | 16.67% |
| joerg roedel | joerg roedel | 1 | 1.27% | 1 | 16.67% |
| Total | 79 | 100.00% | 6 | 100.00% |