[Click] hashallocator.cc
Eddie Kohler
kohler at cs.ucla.edu
Fri Mar 6 12:22:49 EST 2009
Hey,
I tried to fix this in a different way, by changing our definitions of the ffs
operations... this is important because the argument to ffs_msb was already a
64-bit integer. Please let me know if it worked.
Eddie
Latency Buster wrote:
> On a 64 bit machine:
>
> - size_t shift = sizeof(size_t) * 8 - ffs_msb(_buffer->maxpos + _size);
> + size_t shift = sizeof(size_t) * 8 -
> ffs_msb((uint64_t)(_buffer->maxpos + _size));
>
> Thanks,
> _______________________________________________
> click mailing list
> click at amsterdam.lcs.mit.edu
> https://amsterdam.lcs.mit.edu/mailman/listinfo/click
More information about the click
mailing list