/* SPDX-License-Identifier: GPL-2.0 */ #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 | 43.75% | 2 | 28.57% |
| Stephen Rothwell | 30 | 37.50% | 1 | 14.29% |
| Linus Torvalds | 9 | 11.25% | 1 | 14.29% |
| Arnd Bergmann | 4 | 5.00% | 1 | 14.29% |
| Joerg Roedel | 1 | 1.25% | 1 | 14.29% |
| Greg Kroah-Hartman | 1 | 1.25% | 1 | 14.29% |
| Total | 80 | 100.00% | 7 | 100.00% |