]> granicus.if.org Git - git/commit
ewah/bitmap: introduce bitmap_word_alloc()
authorJeff King <peff@peff.net>
Sat, 19 Oct 2019 10:35:25 +0000 (12:35 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 23 Oct 2019 01:47:22 +0000 (10:47 +0900)
commit44e8c234c7d0d03b5f45d69f3a2edaf9794302d0
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.

We will also always access at least one word for each bitmap,
so we want to make sure that at least one is always
allocated.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
ewah/bitmap.c
ewah/ewok.h