[PATCH v2 1/5] distributor: use abstracted bit count functions
Tyler Retzlaff
roretzla at linux.microsoft.com
Tue Nov 7 20:10:01 CET 2023
Use rte_ctz32 or rte_ctz64 respectively instead of __builtin_ctzl
depending on the resultant type of the expression passed as an argument
Fixes: 18898c4d06f9 ("eal: use abstracted bit count functions")
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 ad43c13..08144e5 100644
--- a/lib/distributor/rte_distributor_single.c
+++ b/lib/distributor/rte_distributor_single.c
@@ -252,7 +252,7 @@ struct rte_mbuf *
if (match) {
next_mb = NULL;
- unsigned worker = __builtin_ctzl(match);
+ unsigned worker = rte_ctz64(match);
if (add_to_backlog(&d->backlog[worker],
next_value) < 0)
next_idx--;
--
1.8.3.1
More information about the dev
mailing list