Fix EliasFanoReader when both kUpperFirst and kChecked are true
Summary: The computation of the upper bits size is incorrect when both `kUpperFirst` and `kChecked` are true. In addition, when `kUpperFirst` is true, we might actually need 8 additional bytes in the buffer, for when `numLowerBits = 0`, so clarify the comment. Reviewed By: philippv Differential Revision: D18145144 fbshipit-source-id: 1372d39023e2d5d1c5ccbfb8e6c7af9a5a930f1d
Showing
Please register or sign in to comment