sdk/linux_kernel_drivers/xocl/xocl_exec.c
/**
 * ffz_or_neg_one() - First first zero bit in bit mask
 * 
 * @mask: mask to check
 * Return: Position of first zero bit, or -1 if none
 */
First first zero bit in bit mask

@mask: mask to check
Return: Position of first zero bit, or -1 if none
First first zero bit in bit mask @mask : mask to check Return : Position of first zero bit or - 1 if none
inline int
ffz_or_neg_one(u32 mask)
{
	if (mask==XOCL_U32_MASK)
		return -1;
	return ffz(mask);
}
inline int ffz_or_neg_one ( u32 mask ) { if ( mask == XOCL_U32_MASK ) return -1 ; return ffz ( mask ) ; }
ffz_or_neg_one() - First first zero bit in bit mask
ffz_or_neg_one () - First first zero bit in bit mask