Open MPI logo

Hardware Locality Development Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Hardware Locality Development mailing list

Subject: Re: [hwloc-devel] [hwloc-svn] svn:hwloc r1865
From: Samuel Thibault (samuel.thibault_at_[hidden])
Date: 2010-03-28 05:28:13


Bert Wesarg, le Sat 27 Mar 2010 15:06:43 +0100, a écrit :
> > +  if (needed_count <= ulongs_count)
> > +    return;
> > +
> > +  while (ulongs_count < needed_count)
> > +    ulongs_count *= 2;

Mmm, this is actually 1 << (hwloc_fls(needed_count)), isn't it?

SAmuel