lemire / simdcomp

A simple C library for compressing lists of integers using binary packing
BSD 3-Clause "New" or "Revised" License
488 stars 53 forks source link

Get maxbits for compressed array #16

Closed wshager closed 8 years ago

wshager commented 8 years ago

How do I retrieve the maxbits when I only have a compressed array? Is it possible, or do I have to store the value from maxbits_length?

lemire commented 8 years ago

The library is intentionally low-level. You are responsible for storing the bit width, but we provide examples :

https://github.com/lemire/simdcomp/blob/master/example.c#L41-L62

wshager commented 8 years ago

@lemire understood, thanks.