https://github.com/torvalds/linux
Raw File
Tip revision: 091438dd5668396328a3419abcbc6591159eb8d1 authored by Linus Torvalds on 30 April 2009, 04:48:16 UTC
Linux 2.6.30-rc4
Tip revision: 091438d
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