|
@ -190,7 +190,7 @@ uint32_t iguana_sparseadd(uint8_t *bits,uint32_t ind,int32_t width,uint32_t tabl |
|
|
sparsesearches++; |
|
|
sparsesearches++; |
|
|
if ( 0 && setind == 0 ) |
|
|
if ( 0 && setind == 0 ) |
|
|
printf("tablesize.%d width.%d bitoffset.%d\n",tablesize,width,(int32_t)bitoffset); |
|
|
printf("tablesize.%d width.%d bitoffset.%d\n",tablesize,width,(int32_t)bitoffset); |
|
|
//if ( (sparsesearches % 100000) == 0 )
|
|
|
if ( (sparsesearches % 100000) == 0 ) |
|
|
printf("[%d %d] %.3f sparse searches.%ld iters.%ld hits.%ld %.2f%% max.%ld\n",width,tablesize,(double)sparseiters/(1+sparsesearches),sparsesearches,sparseiters,sparsehits,100.*(double)sparsehits/(1+sparsesearches),sparsemax+1); |
|
|
printf("[%d %d] %.3f sparse searches.%ld iters.%ld hits.%ld %.2f%% max.%ld\n",width,tablesize,(double)sparseiters/(1+sparsesearches),sparsesearches,sparseiters,sparsehits,100.*(double)sparsehits/(1+sparsesearches),sparsemax+1); |
|
|
for (i=0; i<tablesize; i++,ind++,bitoffset+=width) |
|
|
for (i=0; i<tablesize; i++,ind++,bitoffset+=width) |
|
|
{ |
|
|
{ |
|
|