From b95decdffb425188edab0f63af638302c253bc5c Mon Sep 17 00:00:00 2001 From: Dmitrii Krosh Date: Wed, 29 Jul 2026 04:37:48 +0300 Subject: [PATCH] add doc for set9.c --- reimplement/set9.c | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/reimplement/set9.c b/reimplement/set9.c index 3f8da85..c75ec24 100644 --- a/reimplement/set9.c +++ b/reimplement/set9.c @@ -13,7 +13,6 @@ #include "system.h" #define CACHE_SIZE 512 -#define PIVOT_SIZE 486 struct set { size_t cnt; @@ -483,26 +482,6 @@ static const unsigned char char_to_num[255 + 1] = {[0] = 0xff, /* конец с [('z' + 1)... 255] = 0xee}; -static char* put6bits(int c, char* bit_pt) { - *bit_pt++ = (c >> 0) & 1; - *bit_pt++ = (c >> 1) & 1; - *bit_pt++ = (c >> 2) & 1; - *bit_pt++ = (c >> 3) & 1; - *bit_pt++ = (c >> 4) & 1; - *bit_pt++ = (c >> 5) & 1; - - return bit_pt; -} - -static char* put4bits(int c, char* bit_pt) { - *bit_pt++ = (c >> 0) & 1; - *bit_pt++ = (c >> 1) & 1; - *bit_pt++ = (c >> 2) & 1; - *bit_pt++ = (c >> 3) & 1; - - return bit_pt; -} - // Decode base62 and Golomb-Rice in one pass. Base62 is LSB-first; a Z escape contributes 10 stream // bits. static inline int decode_chunk(const unsigned char** input, uint64_t* chunk, unsigned* width) {