[PATCH v3 6/7] distributor: use abstracted bit count functions
Tyler Retzlaff
roretzla at linux.microsoft.com
Wed Nov 8 00:38:19 CET 2023
Use rte_popcount64 instead of __builtin_popcountl where the argument
type passed to the intrinsic was 64-bits.
Signed-off-by: Tyler Retzlaff <roretzla at 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
More information about the dev
mailing list