]> git.proxmox.com Git - mirror_spl-debian.git/blame - include/linux/bitops_compat.h
Merge branch 'kallsyms'
[mirror_spl-debian.git] / include / linux / bitops_compat.h
CommitLineData
877a32e9 1#ifndef _SPL_BITOPS_COMPAT_H
2#define _SPL_BITOPS_COMPAT_H
3
4#include <linux/bitops.h>
5
6#ifndef HAVE_FLS64
7
8static inline int fls64(__u64 x)
9{
10 __u32 h = x >> 32;
11 if (h)
12 return fls(h) + 32;
13 return fls(x);
14}
15
16#endif /* HAVE_FLS64 */
17
18#endif /* _SPL_BITOPS_COMPAT_H */
19