git/ewah
Jeff King 14fbd26044 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 <jonathantanmy@google.com>
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>
2020-01-23 10:51:50 -08:00
..
bitmap.c ewah/bitmap: introduce bitmap_word_alloc() 2020-01-23 10:51:50 -08:00
ewah_bitmap.c ewah: delete unused 'rlwit_discharge_empty()' 2018-06-21 09:39:48 -07:00
ewah_io.c ewah: drop ewah_serialize_native function 2018-06-18 10:16:19 -07:00
ewah_rlw.c ewah: delete unused 'rlwit_discharge_empty()' 2018-06-21 09:39:48 -07:00
ewok.h ewah/bitmap: introduce bitmap_word_alloc() 2020-01-23 10:51:50 -08:00
ewok_rlw.h ewok_rlw.h: add missing 'inline' to function definition 2018-10-29 10:14:19 +09:00