From 79232d05248353f73e5de67573c055de7fca7696 Mon Sep 17 00:00:00 2001 From: x Date: Tue, 14 Mar 2023 10:51:55 +0100 Subject: [PATCH] TurboPFor: Variable byte c/c++ header --- include_/vint.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include_/vint.h b/include_/vint.h index 49f7a06..f0122fb 100644 --- a/include_/vint.h +++ b/include_/vint.h @@ -1,12 +1,12 @@ //-- "Integer Compression" variable byte (scalar TurboVByte+ SIMD TurboByte) --------------------------------------------------------------- -#define V8PAYLOAD(_n_, _usize_) (((_n_)*(_usize_/16)+7)/8) -#define V8BOUND_(_n_, _usize_) (V8PAYLOAD(_n_, _usize_)+ (_n_)*(_usize_/8)) -#define V8BOUND16(_n_) V8BOUND_(_n_, 16) -#define V8BOUND32(_n_) V8BOUND_(_n_, 32) #ifdef __cplusplus extern "C" { #endif + +size_t v8bound16(const uint16_t *in, size_t n); +size_t v8bound32(const uint32_t *in, size_t n); + //----------------------------- TurboVByte 'vb':Variable byte + SIMD TurboByte 'v8': array functions ----- // Encoding/Decoding: Return value = end of compressed/decompressed output/input buffer out/in