From c274e3a4a6a11e425693b09a538b96a284cfd6ee Mon Sep 17 00:00:00 2001 From: x Date: Sat, 10 Mar 2018 12:04:35 +0100 Subject: [PATCH] TurboPFor: Floating Point/Integer encode/decode --- fp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fp.c b/fp.c index 40775f4..ccc3507 100755 --- a/fp.c +++ b/fp.c @@ -268,7 +268,7 @@ size_t TEMPLATE2(fp2dfcmdec,USIZE)(unsigned char *in, size_t n, uint_t *out, uin return ip - in; } -// Improved Gorilla (see Facebook paper) style Floating point/Integer compression + RLE in time series. +// Improved Gorilla (see Facebook paper) style Floating point compression + RLE in time series. #define bitput2(bw,br, _n1_, _n2_, _x_) {\ if(!_x_) bitput(bw,br, 1, 1);/*1*/\ else if( _x_ < (1<< (_n1_-1))) bitput(bw,br, _n1_+2,_x_<<2|2);/*10*/\ @@ -518,6 +518,7 @@ size_t TEMPLATE2(bvzdec,USIZE)(unsigned char *in, size_t n, uint_t *out, uint_t bitalign(bw,br,ip); return ip - in; } + #undef USIZE #endif