[dpdk-dev] [PATCH 2/5] cxgbe: add cxgbe poll mode driver.

Stephen Hemminger stephen at networkplumber.org
Fri May 22 18:43:20 CEST 2015


On Fri, 22 May 2015 18:54:20 +0530
Rahul Lakkireddy <rahul.lakkireddy at chelsio.com> wrote:

> +/**
> + * fls - find last (most-significant) bit set
> + * @x: the word to search
> + *
> + * This is defined the same way as ffs.
> + * Note fls(0) = 0, fls(1) = 1, fls(0x80000000) = 32.
> + */
> +static inline int fls(int x)

Isn't there a Gcc intrinsic already for this?


More information about the dev mailing list