HyperLogLog internal representation modified.
HyperLogLog internal representation modified.

The new representation is more obvious, starting from the LSB of the
first byte and using bits going to MSB, and passing to next byte as
needed.

There was also a subtle error: first two bits were unused, everything
was carried over on the right of two bits, even if it worked because of
the code requirement of always having a byte more at the end.

During the rewrite the code was made safer trying to avoid undefined
behavior due to shifting an uint8_t for more than 8 bits.

YongMan/redis,neomantra/redis,mverrilli/redis,twskipper/redis,SummonY/redis,yossigo/redis,YongMan/redis,narma/redis,brg-liuwei/redis,mingyaaaa/redis,seandsky/redis,josiahcarlson/redis,wenxueliu/redis_comment,tjschuck/redis,modulexcite/redis,ncopa/redis,itugs/redis,abhiklodh/redis,mcanthony/redis,timothyohare/3rdPartySrc-redis,itugs/redis,gilala/bjredis,francischan714/redis,pkdevbox/redis,citusdata/redis,wujf/redis,MOON-CLJ/redis,AplayER/redis,yuhc/redis-benchmark-enhanced,ytjiang/redis,colstrom/redis,oranagra/redis,GrimDerp/redis,taoguan/redis,zczhuohuo/redis,tjschuck/redis,cnbin/redis,rogerlz/redis,pmem/redis,antirez/redis,NBSW/redis,jasonkying/redis,josiahcarlson/redis,universsky/redis,itugs/redis,PKRoma/redis,twskipper/redis,xuguruogu/redis,mumingv/redis,Markgorden/redis,shining-yang/redis,francischan714/redis,mcanthony/redis,yossigo/redis,kensou97/redis,4396/redis,brg-liuwei/redis,GitHubMota/redis,h0x91b/redis,seandsky/redis,roth1002/redis,guker/redis,kaushik94/redis,pmem/redis,jbochi/parallel_redis,zguangyu/redis,dreamquster/redis,brg-liuwei/redis,duanx/redis,allengaller/redis,AALEKH/redis,sunheehnus/redis,pcarrier/redis,yuhc/redis-benchmark-enhanced,GitHubMota/redis,clamoriniere1A/redis,abhiklodh/redis,ton31337/redis,healerkx/redis,cnbin/redis,yuhc/redis-benchmark-enhanced,huyuezheng/redis,YuanZhewei/redis,soveran/redis,elkingtonmcb/redis,jingjidejuren/redis,supasate/redis,4396/redis,StevenTsai/redis,pcarrier/redis,ipmobiletech/redis,cusspvz/redis,RepmujNetsik/redis,zhcy/redis,valdsJohn/redis,z-fork/redis,simplestbest/redis,YuraLukashik/redis,RepmujNetsik/redis,seppo0010/rlite-server,atreeyang/redis,seppo0010/redis,jackyan/redis,seandsky/redis,roth1002/redis,blackmady/redis,pedigree/redis,zczhuohuo/redis,honestme/redis,Sciumo/redis,xlzhan/redis,AALEKH/redis,CodeJuan/redis,GrimDerp/redis,saisai/redis,spinlock/redis,badboy/redis,jbochi/redis,riyan8250/redis,pedigree/redis,MasahikoSawada/redis,holstvoogd/redis,spinlock/redis,francischan714/redis,Wangyao14cyy/redis,clamoriniere1A/redis,nuxeh/redis,tjschuck/redis,pmem/redis,YuanZhewei/redis,elkingtonmcb/redis,z-fork/redis,iandyh/redis,neomantra/redis,xuguruogu/redis,gaoxianglong/redis,wbailey5/redis,fengshao0907/redis,healerkx/redis,simplestbest/redis,AALEKH/redis,Sciumo/redis,hgl888/redis,mgk/redis,ipmobiletech/redis,charsyam/redis,z-fork/redis,oranagra/redis,mumingv/redis,itamarhaber/redis,ctripcorp/redis,takeshineshiro/redis,nnog/redis,kmiku7/redis,iandyh/redis,modulexcite/redis,tellapart/redis,mengzhejin/RedisStudy,cusspvz/redis,abhiklodh/redis,mengzhejin/RedisStudy,itamarhaber/redis,h0x91b/redis,soloestoy/redis,jasonkying/redis,izhoujie/redis,mumingv/redis,josiahcarlson/redis,supasate/redis,seppo0010/rlite-server,Soledad89/redis,wangyikai/redis,timothyohare/3rdPartySrc-redis,pcarrier/redis,allengaller/redis,Markgorden/redis,wujf/redis,shreesundara/redis,july2993/redis,soveran/redis,atreeyang/redis,Aliceljm1/redis,ofirluzon/redis,rouzier/redis,programmecat/redis,charsyam/redis,ErikDubbelboer/redis,mattsta/redis,badboy/redis,gilala/hredis,riyan8250/redis,pkdevbox/redis,ofirluzon/redis,YuraLukashik/redis,devaos/redis,harrisonfeng/redis,soveran/redis,dreamquster/redis,elkingtonmcb/redis,ErikDubbelboer/redis,JoeWoo/redis,yossigo/redis,honestme/redis,guker/redis,gilala/hbjredis,iandyh/redis,ton31337/redis,holstvoogd/redis,weizijun/redis,wenxueliu/redis_comment,PradheepShrinivasan/redis,hedisdb/hedis,ErikDubbelboer/redis,itamarhaber/redis,csuhawk/redis,ofirluzon/redis,citusdata/redis,huyuezheng/redis,mengyou0304/redis,aim-for-better/redis,tanghaodong25/redis,qiyang0221/redis,cnbin/redis,atreeyang/redis,dreamquster/redis,mcanthony/redis,harrisonfeng/redis,valdsJohn/redis,allengaller/redis,tanghaodong25/redis,netroby/redis,csuhawk/redis,gilala/hbjredis,seppo0010/redis,guker/redis,tellapart/redis,PradheepShrinivasan/redis,ouyangkongtong/redis,ituncle/redis,jingjidejuren/redis,gilala/hredis,sunheehnus/redis,programmecat/redis,wbailey5/redis,Aaron1992/redis,z-fork/redis,YongMan/redis,mingyaaaa/redis,Aaron1992/redis,4396/redis,j0hnma/hszredis,mattsta/redis,valdsJohn/redis,rouzier/redis,netroby/redis,hedisdb/hedis,mengyou0304/redis,qiyang0221/redis,riyan8250/redis,RepmujNetsik/redis,jackyan/redis,a-pavlov/redis,nnog/redis,rogerchina/redis,AplayER/redis,devaos/redis,Soledad89/redis,zhiliaoniu/redis,LongXQ/redis,gilala/redis,a-pavlov/redis,badboy/redis,pedigree/redis,AplayER/redis,HeartSaVioR/redis,MasahikoSawada/redis,SummonY/redis,takeshineshiro/redis,OmarQunsul/graph-redis,aim-for-better/redis,kaushik94/redis,soloestoy/redis,zhiliaoniu/redis,saisai/redis,NBSW/redis,wprice/redis,twskipper/redis,clamoriniere1A/redis,badboy/redis,wprice/redis,honestme/redis,AALEKH/redis,riyan8250/redis,hgl888/redis,rouzier/redis,wangyikai/redis,OmarQunsul/graph-redis,mengzhejin/RedisStudy,zhcy/redis,zczhuohuo/redis,huyuezheng/redis,Wangyao14cyy/redis,wprice/redis,pkdevbox/redis,francischan714/redis,nnog/redis,csuhawk/redis,davidradunz/redis,GrimDerp/redis,hornen/redis,cusspvz/redis,hawkchch/redis,GrimDerp/redis,oranagra/redis,xuguruogu/redis,kmiku7/redis,flashbuckets/redis,190235047/redis,healerkx/redis,Soledad89/redis,xujunhai1991/redis,duanx/redis,harrisonfeng/redis,wenxueliu/redis_comment,huyuezheng/redis,dayuoba/redis,allengaller/redis,rogerlz/redis,fengshao0907/redis,gaoxianglong/redis,kensou97/redis,vincent-vivian-liu/redis,qiyang0221/redis,PradheepShrinivasan/redis,xujunhai1991/redis,qiyang0221/redis,Aliceljm1/redis,supasate/redis,antirez/redis,mingyaaaa/redis,kmiku7/redis,yuhc/redis-benchmark-enhanced,PKRoma/redis,tjschuck/redis,alenslan/redis,charsyam/redis,neomantra/redis,brg-liuwei/redis,hgl888/redis,blackmady/redis,aim-for-better/redis,JoeWoo/redis,ouyangkongtong/redis,universsky/redis,programmecat/redis,OmarQunsul/graph-redis,dayuoba/redis,kaushik94/redis,gilala/redis,july2993/redis,SyntaxStacks/redis,hedisdb/hedis,CodeJuan/redis,mgk/redis,seandsky/redis,HeartSaVioR/redis,elkingtonmcb/redis,alenslan/redis,janekmi/redis,timothyohare/3rdPartySrc-redis,arijitvt/redis,Wangyao14cyy/redis,gilala/bjredis,tellapart/redis,zczhuohuo/redis,cloudrain21/redis,sunheehnus/redis,zhiliaoniu/redis,izhoujie/redis,ytjiang/redis,ton31337/redis,nuxeh/redis,StevenTsai/redis,PKRoma/redis,wenxueliu/redis_comment,hornen/redis,ouyangkongtong/redis,j0hnma/hszredis,zhcy/redis,cnbin/redis,sunheehnus/redis,antirez/redis,Sciumo/redis,citusdata/redis,aim-for-better/redis,jackyan/redis,taoguan/redis,mverrilli/redis,gilala/redis,YuanZhewei/redis,spinlock/redis,jbochi/parallel_redis,zguangyu/redis,NBSW/redis,taoguan/redis,shining-yang/redis,itugs/redis,190235047/redis,CodeJuan/redis,twskipper/redis,mverrilli/redis,honestme/redis,Soledad89/redis,davidradunz/redis,wprice/redis,dayuoba/redis,netroby/redis,thomasdarimont/redis,duanx/redis,JoeWoo/redis,zhiliaoniu/redis,StevenTsai/redis,wujf/redis,soveran/redis,gilala/bjredis,oranagra/redis,linfangrong/redis,nuxeh/redis,universsky/redis,LongXQ/redis,clamoriniere1A/redis,jbochi/redis,Aaron1992/redis,wbailey5/redis,roth1002/redis,gilala/redis,pkdevbox/redis,flashbuckets/redis,janekmi/redis,narma/redis,zguangyu/redis,seppo0010/rlite-server,holstvoogd/redis,hedisdb/hedis,janekmi/redis,jbochi/redis,july2993/redis,flashbuckets/redis,RepmujNetsik/redis,arijitvt/redis,StevenTsai/redis,YongMan/redis,shreesundara/redis,jingjidejuren/redis,rogerchina/redis,ncopa/redis,vincent-vivian-liu/redis,izhoujie/redis,soloestoy/redis,JoeWoo/redis,healerkx/redis,j0hnma/szredis,taoguan/redis,timothyohare/3rdPartySrc-redis,wbailey5/redis,tellapart/redis,HeartSaVioR/redis,harrisonfeng/redis,YuraLukashik/redis,cloudrain21/redis,LongXQ/redis,kensou97/redis,a-pavlov/redis,davidradunz/redis,mcanthony/redis,yossigo/redis,kensou97/redis,linfangrong/redis,seppo0010/rlite-server,ncopa/redis,hawkchch/redis,narma/redis,roth1002/redis,blackmady/redis,mingyaaaa/redis,kaushik94/redis,MOON-CLJ/redis,alenslan/redis,j0hnma/hszredis,rouzier/redis,wujf/redis,j0hnma/szredis,flashbuckets/redis,AplayER/redis,cloudrain21/redis,jbochi/parallel_redis,hgl888/redis,CodeJuan/redis,ctripcorp/redis,modulexcite/redis,SyntaxStacks/redis,oranagra/redis,xuguruogu/redis,Wangyao14cyy/redis,july2993/redis,josiahcarlson/redis,charsyam/redis,gilala/hbjredis,ituncle/redis,ipmobiletech/redis,alenslan/redis,weizijun/redis,pmem/redis,OmarQunsul/graph-redis,hawkchch/redis,SyntaxStacks/redis,190235047/redis,blackmady/redis,seppo0010/redis,xlzhan/redis,davidradunz/redis,tanghaodong25/redis,valdsJohn/redis,gilala/hredis,SummonY/redis,NBSW/redis,takeshineshiro/redis,mgk/redis,itamarhaber/redis,dayuoba/redis,xlzhan/redis,izhoujie/redis,linfangrong/redis,atreeyang/redis,arijitvt/redis,xlzhan/redis,h0x91b/redis,ytjiang/redis,neomantra/redis,arijitvt/redis,h0x91b/redis,Aaron1992/redis,gilala/hredis,rogerlz/redis,shreesundara/redis,devaos/redis,simplestbest/redis,4396/redis,zguangyu/redis,pedigree/redis,hornen/redis,MasahikoSawada/redis,devaos/redis,jasonkying/redis,mverrilli/redis,abhiklodh/redis,ErikDubbelboer/redis,fengshao0907/redis,LongXQ/redis,duanx/redis,iandyh/redis,jingjidejuren/redis,holstvoogd/redis,gaoxianglong/redis,rogerlz/redis,wangyikai/redis,netroby/redis,vincent-vivian-liu/redis,thomasdarimont/redis,ouyangkongtong/redis,PKRoma/redis,PKRoma/redis,wangyikai/redis,rogerchina/redis,GitHubMota/redis,simplestbest/redis,Aliceljm1/redis,thomasdarimont/redis,xujunhai1991/redis,Sciumo/redis,saisai/redis,fengshao0907/redis,neomantra/redis,ofirluzon/redis,GitHubMota/redis,xujunhai1991/redis,takeshineshiro/redis,seppo0010/redis,soloestoy/redis,nuxeh/redis,ituncle/redis,pcarrier/redis,mumingv/redis,antirez/redis,linfangrong/redis,hawkchch/redis,j0hnma/hszredis,guker/redis,universsky/redis,zhcy/redis,programmecat/redis,charsyam/redis,jackyan/redis,ctripcorp/redis,YuraLukashik/redis,soloestoy/redis,Markgorden/redis,ofirluzon/redis,colstrom/redis,mengyou0304/redis,gilala/hbjredis,a-pavlov/redis,ipmobiletech/redis,csuhawk/redis,spinlock/redis,ton31337/redis,tanghaodong25/redis,yossigo/redis,YuanZhewei/redis,ytjiang/redis,saisai/redis,MOON-CLJ/redis,ctripcorp/redis,SyntaxStacks/redis,supasate/redis,gaoxianglong/redis,PradheepShrinivasan/redis,shining-yang/redis,Markgorden/redis,190235047/redis,ncopa/redis,MasahikoSawada/redis,j0hnma/szredis,citusdata/redis,weizijun/redis,weizijun/redis,rogerchina/redis,thomasdarimont/redis,SummonY/redis,mattsta/redis,mengzhejin/RedisStudy,HeartSaVioR/redis,shreesundara/redis,jasonkying/redis,ituncle/redis,j0hnma/szredis,modulexcite/redis,kmiku7/redis,Aliceljm1/redis,nnog/redis,janekmi/redis,cloudrain21/redis,dreamquster/redis,gilala/bjredis,mengyou0304/redis,colstrom/redis,shining-yang/redis,cusspvz/redis,hornen/redis,colstrom/redis,mgk/redis,vincent-vivian-liu/redis