eal: use intrinsic function

Signed-off-by: Intel
This commit is contained in:
Intel 2013-07-23 00:00:00 +02:00 committed by Thomas Monjalon
parent 8b7efc04a0
commit 03f6bced5b

View File

@ -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