Use rte_popcount64 instead of __builtin_popcountl where the argument
type passed to the intrinsic was 64-bits.
Signed-off-by: Tyler Retzlaff <roret...@linux.microsoft.com>
---
 lib/distributor/rte_distributor_single.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/distributor/rte_distributor_single.c 
b/lib/distributor/rte_distributor_single.c
index 08144e5..84d88e3 100644
--- a/lib/distributor/rte_distributor_single.c
+++ b/lib/distributor/rte_distributor_single.c
@@ -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;
-- 
1.8.3.1

Reply via email to