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

Fixed bug when calling simdfastset with 32bits #12

Closed cruppstahl closed 9 years ago

cruppstahl commented 9 years ago

if b == 32 then mask = 0 and bitsinlane % 32 = 0. The "we zero" has no effect, and writing the new value leads to a corrupt result.