Hi,
I've been looking at some different rank and select implementations, and during testing I've noticed that the current implementation here returns incorrect results for the rank operation (compared to Vinga's rank9b --- which I verified to be correct). Is this a known issue? I haven't dug into the code to determine exactly why the bug is happening, but it seems to happen in both large and small-scale bit vectors, so it might even be related to the popcountLinear implementation.
Hi,
I've been looking at some different rank and select implementations, and during testing I've noticed that the current implementation here returns incorrect results for the rank operation (compared to Vinga's rank9b --- which I verified to be correct). Is this a known issue? I haven't dug into the code to determine exactly why the bug is happening, but it seems to happen in both large and small-scale bit vectors, so it might even be related to the popcountLinear implementation.