15#include <linux/types.h>
29#ifndef CONFIG_ARCH_HAS_ILOG2_U32
37#ifndef CONFIG_ARCH_HAS_ILOG2_U64
53 return (
n != 0 && ((
n & (
n - 1)) == 0));
60unsigned long __roundup_pow_of_two(
unsigned long n)
69unsigned long __rounddown_pow_of_two(
unsigned long n)
99#define roundup_pow_of_two(n) \
101 __builtin_constant_p(n) ? ( \
103 (1UL << (ilog2((n) - 1) + 1)) \
105 __roundup_pow_of_two(n) \
116#define rounddown_pow_of_two(n) \
118 __builtin_constant_p(n) ? ( \
120 (1UL << ilog2(n))) : \
121 __rounddown_pow_of_two(n) \
138#define order_base_2(n) ilog2(roundup_pow_of_two(n))
static int fls64(__u64 x)
static unsigned fls_long(unsigned long l)
unsigned int(__cdecl typeof(jpeg_read_scanlines))(struct jpeg_decompress_struct *
static unsigned(__cdecl *hash_bstr)(bstr_t s)