From 03f6bced5bbab0537bbe7fb2522941e8e5ba47d9 Mon Sep 17 00:00:00 2001 From: Intel Date: Tue, 23 Jul 2013 00:00:00 +0200 Subject: [PATCH] eal: use intrinsic function Signed-off-by: Intel --- lib/librte_eal/common/include/rte_common.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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 -- 2.20.1