Branch: Tag:

2012-02-09

2012-02-09 13:29:49 by Arne Goedeke <el@laramies.com>

moved counter into stats struct

142: Inside #if defined(BA_STATS)
   a->block_size * a->blocks,    a->block_size    ); +  if (a->good || a->bad || a->ugly || a->likely || a->max) { +  printf("COUNTS:\n%lu good\t %lu bad\t %lu ugly\t %lu likely\t %lu max %lu full %lu empty\n", a->good, a->bad, a->ugly, a->likely, a->max, +  a->full, a->empty);    } -  + }   #endif      //#define BA_ALIGNMENT 8
437:    const void * ptr) {    ba_page p;    ba_page_t n1, n2; - #ifdef COUNT -  count_name = "hash"; - #endif +     n1 = a->htable[hash1(a, ptr) & BA_HASH_MASK(a)];    n2 = a->htable[hash2(a, ptr) & BA_HASH_MASK(a)];