ewah/bitmap: introduce bitmap_word_alloc()
authorJeff King <redacted>
Wed, 18 Dec 2019 11:25:38 +0000 (12:25 +0100)
committerJunio C Hamano <redacted>
Thu, 23 Jan 2020 18:51:50 +0000 (10:51 -0800)
commit14fbd260442b14813e142f762050313daee1f18d
treeefcdf216ff74029203d165b2c405365b06cb09c1
parent56d9cbe68b0746640d22b7c05468d76df92debf3
ewah/bitmap: introduce bitmap_word_alloc()

In a following commit we will need to allocate a variable
number of bitmap words, instead of always 32, so let's add
bitmap_word_alloc() for this purpose.

Note that we have to adjust the block growth in bitmap_set(),
since a caller could now use an initial size of "0" (we don't
plan to do that, but it doesn't hurt to be defensive).

Helped-by: Jonathan Tan <redacted>
Signed-off-by: Jeff King <redacted>
Signed-off-by: Christian Couder <redacted>
Signed-off-by: Junio C Hamano <redacted>
ewah/bitmap.c
ewah/ewok.h
git clone https://git.99rst.org/PROJECT