From: Intel Date: Mon, 22 Jul 2013 22:00:00 +0000 (+0200) Subject: eal: use intrinsic function X-Git-Tag: spdx-start~11182 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=03f6bced5bbab0537bbe7fb2522941e8e5ba47d9;p=dpdk.git eal: use intrinsic function Signed-off-by: Intel --- 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