Il 30/07/2012 15:39, Paolo Bonzini ha scritto:
>>> +HBitmap *hbitmap_alloc(uint64_t size, int granularity)
>>> >> +{
>>> >> + HBitmap *hb = g_malloc0(sizeof(struct HBitmap));
>>> >> + int i;
>>> >> +
>>> >> + assert(granularity >= 0 && granularity < 64);
>> >
>> > Shouldn't this be granularity < BITS_PER_LONG?
> Yep, thanks.
> Actually, no. granularity is always applied to int64_t/uint64_t values. Paolo
