93#ifndef __ADS_BinaryPacking
94 #define __ADS_BinaryPacking
118#if ADS_SIMD && ! defined( ADS_BP_SCALAR )
119 #define ADS_BP_SIMD 1
149[[nodiscard]]
inline std::vector< std::uint8_t >
150binaryPack( std::span< const std::uint32_t > x ,
bool sorted =
false );
171[[nodiscard]]
inline std::vector< std::uint32_t >
173 bool sorted =
false );
198[[nodiscard]]
inline std::vector< std::uint8_t >
199patchedPack( std::span< const std::uint32_t > x ,
bool sorted =
false );
221[[nodiscard]]
inline std::vector< std::uint32_t >
223 bool sorted =
false );
233#include "ADS/compression/impl/BinaryPacking.tpp"
The contracts of ADS: the preconditions, the postconditions and the invariants of the operations,...
The vector kernels of ADS on Google Highway, with ADS_WITH_HIGHWAY: the loops over arrays that a stru...
std::vector< std::uint8_t > patchedPack(std::span< const std::uint32_t > x, bool sorted=false)
the patched binary packing (PFor) of in blocks of 128 integers, of their differences at a distance o...
std::vector< std::uint8_t > binaryPack(std::span< const std::uint32_t > x, bool sorted=false)
the binary packing of in blocks of 128 integers, of their differences at a distance of 4 if sorted
std::vector< std::uint32_t > patchedUnpack(std::span< const std::uint8_t > in, std::size_t n, bool sorted=false)
the integers of the patched code in, packed with the same sorted
std::vector< std::uint32_t > binaryUnpack(std::span< const std::uint8_t > in, std::size_t n, bool sorted=false)
the integers of the code in, packed with the same sorted