[v2,1/5] distributor: use abstracted bit count functions
Checks
Commit Message
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@linux.microsoft.com>
---
lib/distributor/rte_distributor_single.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
@@ -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--;