src/dpdk/lib/librte_distributor/rte_distributor_single.c
static inline void
store_return(uintptr_t oldbuf, struct rte_distributor_single *d,
		unsigned *ret_start, unsigned *ret_count)
{
	/* store returns in a circular buffer - code is branch-free */
	d->returns.mbufs[(*ret_start + *ret_count) & RTE_DISTRIB_RETURNS_MASK]
			= (void *)oldbuf;
	*ret_start += (*ret_count == RTE_DISTRIB_RETURNS_MASK) & !!(oldbuf);
	*ret_count += (*ret_count != RTE_DISTRIB_RETURNS_MASK) & !!(oldbuf);
}
/* stores a packet returned from a worker inside the returns array */
stores a packet returned from a worker inside the returns array
stores a packet returned from a worker inside the returns array
static inline void
store_return(uintptr_t oldbuf, struct rte_distributor_single *d,
		unsigned *ret_start, unsigned *ret_count)
{
	d->returns.mbufs[(*ret_start + *ret_count) & RTE_DISTRIB_RETURNS_MASK]
			= (void *)oldbuf;
	*ret_start += (*ret_count == RTE_DISTRIB_RETURNS_MASK) & !!(oldbuf);
	*ret_count += (*ret_count != RTE_DISTRIB_RETURNS_MASK) & !!(oldbuf);
}
static inline void store_return ( uintptr_t oldbuf , struct rte_distributor_single * d , unsigned * ret_start , unsigned * ret_count ) { d -> returns . mbufs [ ( * ret_start + * ret_count ) & RTE_DISTRIB_RETURNS_MASK ] = ( void * ) oldbuf ; * ret_start += ( * ret_count == RTE_DISTRIB_RETURNS_MASK ) & ! ! ( oldbuf ) ; * ret_count += ( * ret_count != RTE_DISTRIB_RETURNS_MASK ) & ! ! ( oldbuf ) ; }
stores a packet returned from a worker inside the returns array
stores a packet returned from a worker inside the returns array
/* store returns in a circular buffer - code is branch-free */