ffz.h 286 B

123456789101112
  1. #ifndef _ASM_GENERIC_BITOPS_FFZ_H_
  2. #define _ASM_GENERIC_BITOPS_FFZ_H_
  3. /*
  4. * ffz - find first zero in word.
  5. * @word: The word to search
  6. *
  7. * Undefined if no zero exists, so code should check against ~0UL first.
  8. */
  9. #define ffz(x) __ffs(~(x))
  10. #endif /* _ASM_GENERIC_BITOPS_FFZ_H_ */