[v3,6/7] distributor: use abstracted bit count functions
Checks
Commit Message
Use rte_popcount64 instead of __builtin_popcountl where the argument
type passed to the intrinsic was 64-bits.
Signed-off-by: Tyler Retzlaff <roretzla@linux.microsoft.com>
---
lib/distributor/rte_distributor_single.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
@@ -341,7 +341,7 @@ struct rte_mbuf *
{
unsigned wkr, total_outstanding;
- total_outstanding = __builtin_popcountl(d->in_flight_bitmask);
+ total_outstanding = rte_popcount64(d->in_flight_bitmask);
for (wkr = 0; wkr < d->num_workers; wkr++)
total_outstanding += d->backlog[wkr].count;