| 364 | |
| 365 | |
| 366 | void hashstats_print( struct hashstats * stats, char const * name ) |
| 367 | { |
| 368 | printf( "%s table: %d+%d+%d (%dK+%luK+%luK) items+table+hash, %f density\n", |
| 369 | name, |
| 370 | stats->count, |
| 371 | stats->num_items, |
| 372 | stats->tab_size, |
| 373 | stats->num_items * stats->item_size / 1024, |
| 374 | (long unsigned)stats->tab_size * sizeof( ITEM * * ) / 1024, |
| 375 | (long unsigned)stats->num_hashes * sizeof( struct hash ) / 1024, |
| 376 | (float)stats->count / (float)stats->sets ); |
| 377 | } |
| 378 | |
| 379 | |
| 380 | void hashdone( struct hash * hp ) |
no outgoing calls
no test coverage detected