src/dpdk/drivers/net/bnxt/tf_core/bitalloc.c
static int
ba_ffs(bitalloc_word_t v)
{
	int c; /* c will be the number of zero bits on the right plus 1 */

	v &= -v;
	c = v ? 32 : 0;

	if (v & 0x0000FFFF)
		c -= 16;
	if (v & 0x00FF00FF)
		c -= 8;
	if (v & 0x0F0F0F0F)
		c -= 4;
	if (v & 0x33333333)
		c -= 2;
	if (v & 0x55555555)
		c -= 1;

	return c;
}
/* Finds the first bit set plus 1, equivalent to gcc __builtin_ffs */
Finds the first bit set plus 1, equivalent to gcc __builtin_ffs
Finds the first bit set plus 1 equivalent to gcc __builtin_ffs
static int
ba_ffs(bitalloc_word_t v)
{
	int c; 
	v &= -v;
	c = v ? 32 : 0;
	if (v & 0x0000FFFF)
		c -= 16;
	if (v & 0x00FF00FF)
		c -= 8;
	if (v & 0x0F0F0F0F)
		c -= 4;
	if (v & 0x33333333)
		c -= 2;
	if (v & 0x55555555)
		c -= 1;
	return c;
}
static int ba_ffs ( bitalloc_word_t v ) { int c ; v &= - v ; c = v ? 32 : 0 ; if ( v & 0x0000FFFF ) c -= 16 ; if ( v & 0x00FF00FF ) c -= 8 ; if ( v & 0x0F0F0F0F ) c -= 4 ; if ( v & 0x33333333 ) c -= 2 ; if ( v & 0x55555555 ) c -= 1 ; return c ; }
Finds the first bit set plus 1, equivalent to gcc __builtin_ffs
Finds the first bit set plus 1 equivalent to gcc __builtin_ffs
/* c will be the number of zero bits on the right plus 1 */