lkml.org 
[lkml]   [2006]   [Mar]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] IPoIB queue size tune patch
From
Date
 > +static int expsize(int size)
> +{
> + int expsize_t = 1;
> + int j = 1;
> + while (size / 2 >= expsize_t) {
> + expsize_t = 1 << ++j;
> + }
> + return expsize_t;
> +}

Yikes... is this just a very hard-to-understand version of roundup_pow_of_two()?

Hmm, no, it's rounding down I guess. But is there any reason not to
use roundup_pow_of_two() instead?

- R.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-04-01 01:14    [from the cache]
©2003-2011 Jasper Spaans