On 13 July 2012 05:35, Jia Liu <pro...@gmail.com> wrote:
> +static inline uint32_t field(uint32_t val, int start, int length)
> +{
> +    val >>= start;
> +    val &= ~(~0 << length);
> +    return val;
> +}

extract32() is in bitops.h now, so it would be better to
use that instead. Thanks for prodding us to actually write
this utility routine :-)

-- PMM

Reply via email to