Home
last modified time | relevance | path

Searched full:__fls (Results 1 – 25 of 116) sorted by relevance

12345

/linux/arch/sparc/lib/
H A Dfls64.S1 /* 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 DNG4fls.S1 /* NG4fls.S: SPARC optimized fls and __fls for T4 and above.
/linux/lib/tests/
H A Dffs_kunit.c137 /* __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 Dbuiltin-__fls.h6 * __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 Dfls64.h31 return __fls(x) + 1; in fls64()
H A D__fls.h45 #define __fls(word) generic___fls(word) macro
/linux/arch/openrisc/include/asm/bitops/
H A D__fls.h14 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 Dbitops.h21 #include <asm-generic/bitops/__fls.h>
28 #include <asm-generic/bitops/builtin-__fls.h>
/linux/arch/arm/mach-dove/
H A Dirq.c50 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 Dbitops.h53 * 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 Dfind.c35 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 Dbitops.h76 * __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 Dbitops.h19 #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 Dload_unaligned_zeropad.c24 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 Dirq-orion.c44 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 Dipu3-dmamap.c53 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 Dfls64.h31 return __fls(x) + 1; in fls64()
H A D__fls.h45 #define __fls(word) generic___fls(word) macro
/linux/tools/include/asm-generic/
H A Dbitops.h19 #include <asm-generic/bitops/__fls.h>
/linux/arch/arm64/include/asm/
H A Dbitops.h16 #include <asm-generic/bitops/builtin-__fls.h>
/linux/lib/
H A Dclosure.c22 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 Dbitops.h21 #include <asm-generic/bitops/__fls.h>
/linux/arch/openrisc/include/asm/
H A Dbitops.h31 #include <asm/bitops/__fls.h>
/linux/drivers/rapidio/devices/
H A Dtsi721.h167 #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 Dint_sqrt.c27 m = 1UL << (__fls(x) & ~1UL); in int_sqrt()

12345