| /linux/arch/sparc/lib/ |
| H A D | fls64.S | 1 /* fls64.S: SPARC default __fls definition. 3 * SPARC default __fls definition, which follows the same algorithm as 4 * in generic __fls(). This function will be boot time patched on T4 14 ENTRY(__fls) 60 ENDPROC(__fls) 61 EXPORT_SYMBOL(__fls)
|
| H A D | NG4fls.S | 1 /* NG4fls.S: SPARC optimized fls and __fls for T4 and above.
|
| /linux/lib/tests/ |
| H A D | ffs_kunit.c | 137 /* __ffs and __fls are undefined for 0, but often return specific values */ in validate_ffs_relationships() 144 fls_0based = __fls(input); in validate_ffs_relationships() 151 /* Relationship: fls(x) == __fls(x) + 1 for x != 0 */ in validate_ffs_relationships() 153 "fls(0x%08lx) != __fls(0x%08lx) + 1: %d != %u + 1", in validate_ffs_relationships() 230 /* Test __fls() - skip zero case as it's undefined */ in ffs_basic_correctness_test() 232 /* Calculate expected __fls() result: __fls(x) == fls(x) - 1 */ in ffs_basic_correctness_test() 234 validate_ffs_result(test, tc->input, __fls(tc->input), in ffs_basic_correctness_test() 235 expected_fls_0based, "__fls", tc->description); in ffs_basic_correctness_test() 521 CREATE_WRAPPER(__fls) in CREATE_WRAPPER()
|
| /linux/include/asm-generic/bitops/ |
| H A D | builtin-__fls.h | 6 * __fls - find last (most-significant) set bit in a long word 11 static __always_inline __attribute_const__ unsigned int __fls(unsigned long word) in __fls() function
|
| H A D | fls64.h | 31 return __fls(x) + 1; in fls64()
|
| H A D | __fls.h | 45 #define __fls(word) generic___fls(word) macro
|
| /linux/arch/openrisc/include/asm/bitops/ |
| H A D | __fls.h | 14 static inline __attribute_const__ unsigned long __fls(unsigned long x) in __fls() function 26 #include <asm-generic/bitops/__fls.h>
|
| /linux/arch/loongarch/include/asm/ |
| H A D | bitops.h | 21 #include <asm-generic/bitops/__fls.h> 28 #include <asm-generic/bitops/builtin-__fls.h>
|
| /linux/arch/arm/mach-dove/ |
| H A D | irq.c | 50 unsigned int hwirq = 1 + __fls(stat); in dove_legacy_handle_irq() 57 unsigned int hwirq = 33 + __fls(stat); in dove_legacy_handle_irq()
|
| /linux/arch/csky/include/asm/ |
| H A D | bitops.h | 53 * asm-generic/bitops/__fls.h 55 static __always_inline __attribute_const__ unsigned long __fls(unsigned long x) in __fls() function
|
| /linux/arch/s390/lib/ |
| H A D | find.c | 35 return result + (__fls(tmp) ^ (BITS_PER_LONG - 1)); in find_first_bit_inv() 74 return result + (__fls(tmp) ^ (BITS_PER_LONG - 1)); in find_next_bit_inv()
|
| /linux/arch/xtensa/include/asm/ |
| H A D | bitops.h | 76 * __fls - find last (most-significant) set bit in a long word 81 static inline __attribute_const__ unsigned long __fls(unsigned long word) in __fls() function 93 # include <asm-generic/bitops/__fls.h>
|
| /linux/arch/riscv/include/asm/ |
| H A D | bitops.h | 19 #include <asm-generic/bitops/__fls.h> 30 #include <asm-generic/bitops/__fls.h> 87 * __fls - find last set bit in a long word 92 #define __fls(word) \ macro
|
| /linux/tools/testing/selftests/powerpc/primitives/ |
| H A D | load_unaligned_zeropad.c | 24 static inline unsigned long __fls(unsigned long x); 30 static inline unsigned long __fls(unsigned long x) in __fls() function
|
| /linux/drivers/irqchip/ |
| H A D | irq-orion.c | 44 u32 hwirq = __fls(stat); in orion_handle_irq() 117 u32 hwirq = __fls(stat); in orion_bridge_irq_handler()
|
| /linux/drivers/staging/media/ipu3/ |
| H A D | ipu3-dmamap.c | 53 for (order_mask &= (2U << __fls(count)) - 1; in imgu_dmamap_alloc_buffer() 55 unsigned int order = __fls(order_mask); in imgu_dmamap_alloc_buffer()
|
| /linux/tools/include/asm-generic/bitops/ |
| H A D | fls64.h | 31 return __fls(x) + 1; in fls64()
|
| H A D | __fls.h | 45 #define __fls(word) generic___fls(word) macro
|
| /linux/tools/include/asm-generic/ |
| H A D | bitops.h | 19 #include <asm-generic/bitops/__fls.h>
|
| /linux/arch/arm64/include/asm/ |
| H A D | bitops.h | 16 #include <asm-generic/bitops/builtin-__fls.h>
|
| /linux/lib/ |
| H A D | closure.c | 22 flags & CLOSURE_GUARD_MASK, (unsigned) __fls(r))) in closure_put_after_sub_checks() 27 flags & ~CLOSURE_DESTRUCTOR, (unsigned) __fls(flags)); in closure_put_after_sub_checks()
|
| /linux/include/asm-generic/ |
| H A D | bitops.h | 21 #include <asm-generic/bitops/__fls.h>
|
| /linux/arch/openrisc/include/asm/ |
| H A D | bitops.h | 31 #include <asm/bitops/__fls.h>
|
| /linux/drivers/rapidio/devices/ |
| H A D | tsi721.h | 167 #define TSI721_IDQ_SIZE_VAL(size) (__fls(size) - 4) 191 #define TSI721_IBWIN_SIZE(size) (__fls(size) - 12) 236 #define TSI721_OBWIN_SIZE(size) (__fls(size) - 15) 314 #define TSI721_DMAC_DSSZ_SIZE(size) (__fls(size) - 4)
|
| /linux/lib/math/ |
| H A D | int_sqrt.c | 27 m = 1UL << (__fls(x) & ~1UL); in int_sqrt()
|