函数源码 |
Source File:include\linux\log2.h |
Create Date:2022-07-27 06:38:16 |
首页 | Copyright©Brick |
59 60 61 62 63 64 65 66 67 | /** * __rounddown_pow_of_two() - round down to nearest power of two * @n: value to round down */ static inline __attribute__(( const )) unsigned long __rounddown_pow_of_two(unsigned long n) { return 1UL << (fls_long(n) - 1); } |