diff --git a/lib/librte_eal/common/include/rte_common.h b/lib/librte_eal/common/include/rte_common.h index 764d1cfd12..0ad06ec13f 100644 --- a/lib/librte_eal/common/include/rte_common.h +++ b/lib/librte_eal/common/include/rte_common.h @@ -274,10 +274,7 @@ rte_pause (void) static inline uint32_t rte_bsf32(uint32_t v) { - asm("bsf %1,%0" - : "=r" (v) - : "rm" (v)); - return (v); + return (__builtin_ctz(v)); } #ifndef offsetof