Lines Matching refs:fls
22 * Helper for fls( ) friends
70 * fls = Find Last Set in word
72 * fls(1) = 1, fls(0x80000000) = 32, fls(0) = 0
74 static inline __attribute__ ((const)) int fls(unsigned int x)
83 * __fls: Similar to fls, but zero based (0-31)
90 return fls(x) - 1;
97 #define ffs(x) ({ unsigned long __t = (x); fls(__t & -__t); })
113 * fls = Find Last Set in word
115 * fls(1) = 1, fls(0x80000000) = 32, fls(0) = 0
117 static inline __attribute__ ((const)) int fls(unsigned int x)
122 " fls.f %0, %1 \n" /* 0:31; 0(Z) if src 0 */
132 * __fls: Similar to fls, but zero based (0-31). Also 0 if no bit set