72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
|
free(p->a);
bag_init(p);
}
/*
** The hash function
*/
#define bag_hash(i) (i*101)
/*
** Change the size of the hash table on a bag so that
** it contains N slots
**
** Completely reconstruct the hash table from scratch. Deleted
** entries (indicated by a -1) are removed. When finished, it
|
|
|
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
|
free(p->a);
bag_init(p);
}
/*
** The hash function
*/
#define bag_hash(i) (((u64)(i))*101)
/*
** Change the size of the hash table on a bag so that
** it contains N slots
**
** Completely reconstruct the hash table from scratch. Deleted
** entries (indicated by a -1) are removed. When finished, it
|