···321321#else322322#define fls generic_fls323323#endif324324+#define fls64 generic_fls64324325325326/* Compute powers of two for the given integer. */326327static inline long floor_log2(unsigned long word)
+2
include/asm-arm/bitops.h
···332332 */333333334334#define fls(x) generic_fls(x)335335+#define fls64(x) generic_fls64(x)335336336337/*337338 * ffs: find first bit set. This is defined the same way as···352351#define fls(x) \353352 ( __builtin_constant_p(x) ? generic_fls(x) : \354353 ({ int __r; asm("clz\t%0, %1" : "=r"(__r) : "r"(x) : "cc"); 32-__r; }) )354354+#define fls64(x) generic_fls64(x)355355#define ffs(x) ({ unsigned long __t = (x); fls(__t & -__t); })356356#define __ffs(x) (ffs(x) - 1)357357#define ffz(x) __ffs( ~(x) )
+1
include/asm-arm26/bitops.h
···259259 */260260261261#define fls(x) generic_fls(x)262262+#define fls64(x) generic_fls64(x)262263263264/*264265 * ffs: find first bit set. This is defined the same way as
+1
include/asm-cris/bitops.h
···240240 */241241242242#define fls(x) generic_fls(x)243243+#define fls64(x) generic_fls64(x)243244244245/*245246 * hweightN - returns the hamming weight of a N-bit word
+1
include/asm-frv/bitops.h
···228228 \229229 bit ? 33 - bit : bit; \230230})231231+#define fls64(x) generic_fls64(x)231232232233/*233234 * Every architecture must define this function. It's the fastest
···345345 x |= x >> 16;346346 return ia64_popcnt(x);347347}348348+#define fls64(x) generic_fls64(x)348349349350/*350351 * ffs: find first bit set. This is defined the same way as the libc and compiler builtin
···310310311311 return 32 - cnt;312312}313313+#define fls64(x) generic_fls64(x)313314314315/*315316 * Every architecture must define this function. It's the fastest
+1
include/asm-m68knommu/bitops.h
···499499 * fls: find last bit set.500500 */501501#define fls(x) generic_fls(x)502502+#define fls64(x) generic_fls64(x)502503503504#endif /* _M68KNOMMU_BITOPS_H */
+1-1
include/asm-mips/bitops.h
···695695696696 return flz(~word) + 1;697697}698698-698698+#define fls64(x) generic_fls64(x)699699700700/*701701 * find_next_zero_bit - find the first zero bit in a memory region
···310310 asm ("cntlzw %0,%1" : "=r" (lz) : "r" (x));311311 return 32 - lz;312312}313313+#define fls64(x) generic_fls64(x)313314314315/*315316 * hweightN: returns the hamming weight (i.e. the number
+1
include/asm-s390/bitops.h
···839839 * fls: find last bit set.840840 */841841#define fls(x) generic_fls(x)842842+#define fls64(x) generic_fls64(x)842843843844/*844845 * hweightN: returns the hamming weight (i.e. the number
···245245{246246 return __cntlz(x);247247}248248+#define fls64(x) generic_fls64(x)248249249250static __inline__ int250251find_next_bit(const unsigned long *addr, int size, int offset)
+9
include/linux/bitops.h
···7676 */7777#include <asm/bitops.h>78787979+8080+static inline int generic_fls64(__u64 x)8181+{8282+ __u32 h = x >> 32;8383+ if (h)8484+ return fls(x) + 32;8585+ return fls(x);8686+}8787+7988static __inline__ int get_bitmask_order(unsigned int count)8089{8190 int order;