* Re: [PATCH] IPoIB queue size tune patch
[not found] <OFC9A94743.F4C78DFE-ON87257142.005F70AF-88257142.006068A0@us.ibm.com>
@ 2006-03-31 20:44 ` Roland Dreier
0 siblings, 0 replies; only message in thread
From: Roland Dreier @ 2006-03-31 20:44 UTC (permalink / raw)
To: Shirley Ma; +Cc: linux-kernel, openib-general
> +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.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-03-31 23:11 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <OFC9A94743.F4C78DFE-ON87257142.005F70AF-88257142.006068A0@us.ibm.com>
2006-03-31 20:44 ` [PATCH] IPoIB queue size tune patch Roland Dreier
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox