https://github.com/torvalds/linux
Raw File
Tip revision: b01543dfe67bb1d191998e90d20534dc354de059 authored by Linus Torvalds on 18 February 2012, 23:53:33 UTC
Linux 3.3-rc4
Tip revision: b01543d
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