Files
OrangePi_CM5/tools/testing/radix-tree/linux/bitops/fls64.h
T

14 lines
245 B
C
Raw Normal View History

2016-03-17 14:21:45 -07:00
#ifndef _ASM_GENERIC_BITOPS_FLS64_H_
#define _ASM_GENERIC_BITOPS_FLS64_H_
#include <asm/types.h>
static inline int fls64(__u64 x)
{
__u32 h = x >> 32;
if (h)
return fls(h) + 32;
return fls(x);
}
#endif /* _ASM_GENERIC_BITOPS_FLS64_H_ */