https://github.com/torvalds/linux
Raw File
Tip revision: a978b30af3bab0dd9af9350eeda25e76123fa28e authored by Linus Torvalds on 16 March 2008, 23:32:14 UTC
Linux 2.6.25-rc6
Tip revision: a978b30
ffz.h
#ifndef _ASM_GENERIC_BITOPS_FFZ_H_
#define _ASM_GENERIC_BITOPS_FFZ_H_

/*
 * ffz - find first zero in word.
 * @word: The word to search
 *
 * Undefined if no zero exists, so code should check against ~0UL first.
 */
#define ffz(x)  __ffs(~(x))

#endif /* _ASM_GENERIC_BITOPS_FFZ_H_ */
back to top