Skip to content

Commit

Permalink
Merge pull request #117 from pps83/master-MaskedVByte-FastPForLib
Browse files Browse the repository at this point in the history
Place MaskedVByte into FastPForLib namespace
  • Loading branch information
lemire authored Jun 10, 2024
2 parents e4e79bb + 9a4faa8 commit e9b452f
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions headers/simdvariablebyte.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
#include "common.h"
#include "codecs.h"

namespace FastPForLib {

#ifdef __cplusplus
extern "C" {
#endif
Expand All @@ -26,7 +28,7 @@ size_t masked_vbyte_read_loop_fromcompressedsize(const uint8_t *in,
/**
* SIMD-accelerated version of VariableByteAlt.
*/
class MaskedVByte : public FastPForLib::IntegerCODEC {
class MaskedVByte : public IntegerCODEC {
public:
MaskedVByte() {}

Expand Down Expand Up @@ -77,7 +79,7 @@ class MaskedVByte : public FastPForLib::IntegerCODEC {
++bout;
}
}
while (FastPForLib::needPaddingTo32Bits(bout)) {
while (needPaddingTo32Bits(bout)) {
*bout++ = 0xFFU;
}
const size_t storageinbytes = bout - initbout;
Expand All @@ -93,4 +95,7 @@ class MaskedVByte : public FastPForLib::IntegerCODEC {

std::string name() const { return "MaskedVByte"; }
};

} // namespace FastPForLib

#endif /* SIMDVARIABLEBYTE_H_ */

0 comments on commit e9b452f

Please sign in to comment.