James Morrison wrote:
>>+#define NBUCKETS (31 - LOG2_MIN_SIZE + 1)
>
> Why are you using 31 + 1 instead of just 32?
NBUCKETS must contain the number of elements between LOG2_MIN_SIZE
and 31 inclusively. This calculation is more logical.
--
Ognyan Kulev <[EMAIL PROTECTED]>, "\"Programmer\
--- Ognyan Kulev <[EMAIL PROTECTED]> wrote:
> Hi,
>
> In `libc/hurd/hurdmalloc.c:198' the value of NBUCKETS is defined as 29
> and this is correct when LOG2_MIN_SIZE is 3. But when MCHECK is defined
> LOG2_MIN_SIZE becomes 4 and NBUCKETS must be 28.
>
> Regards
> --
> Ognyan Kulev <[EMAIL P
Hi,
In `libc/hurd/hurdmalloc.c:198' the value of NBUCKETS is defined as 29
and this is correct when LOG2_MIN_SIZE is 3. But when MCHECK is defined
LOG2_MIN_SIZE becomes 4 and NBUCKETS must be 28.
Regards
--
Ognyan Kulev <[EMAIL PROTECTED]>, "\"Programmer\""
2002-03-25 Ognyan Kulev <[EMAIL