ewah: implement bitmap_or()
authorJeff King <peff@peff.net>
Tue, 8 Dec 2020 22:03:46 +0000 (17:03 -0500)
committerJunio C Hamano <gitster@pobox.com>
Tue, 8 Dec 2020 22:48:16 +0000 (14:48 -0800)
commit3ed675101aad3dcc948ad0e1d41e55d65e693740
treed43980fe61148ec22a1a17693dff2d4ff41fd727
parent2e2d141afdaa2b086ac5d4228de0dd0003eb69ff
ewah: implement bitmap_or()

We have a function to bitwise-OR an ewah into an uncompressed bitmap,
but not to OR two uncompressed bitmaps. Let's add it.

Interestingly, we have a public header declaration going back to
e1273106f6 (ewah: compressed bitmap implementation, 2013-11-14), but the
function was never implemented. That was all OK since there were no
users of 'bitmap_or()', but a first caller will be added in a couple of
patches.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Taylor Blau <me@ttaylorr.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
ewah/bitmap.c