On 08/16/2013 05:50 AM, Alex Williamson wrote:
> +    /* Size must be a power of 2 */
> +    if (l & (l - 1)) {
> +        while (l & (access_size_max - 1)) {
> +            access_size_max >>= 1;
> +        }
> +    }
> +

Why the loop at all?  x & -x extracts the lsb of x.


r~

Reply via email to