Lines Matching refs:fls
204 * Helper for fls( ) friends
252 * fls = Find Last Set in word
254 * fls(1) = 1, fls(0x80000000) = 32, fls(0) = 0
256 static inline __attribute__ ((const)) int fls(unsigned int x)
265 * __fls: Similar to fls, but zero based (0-31)
272 return fls(x) - 1;
279 #define ffs(x) ({ unsigned long __t = (x); fls(__t & -__t); })
295 * fls = Find Last Set in word
297 * fls(1) = 1, fls(0x80000000) = 32, fls(0) = 0
299 static inline __attribute__ ((const)) int fls(unsigned long x)
304 " fls.f %0, %1 \n" /* 0:31; 0(Z) if src 0 */
314 * __fls: Similar to fls, but zero based (0-31). Also 0 if no bit set