Lines Matching refs:nel
89 hcreate(size_t nel) in hcreate() argument
98 return hcreate_r(nel, &htable); in hcreate()
102 hcreate_r(size_t nel, struct hsearch_data *head) in hcreate_r() argument
109 if (nel < MIN_BUCKETS) in hcreate_r()
110 nel = MIN_BUCKETS; in hcreate_r()
113 if (nel > MAX_BUCKETS) in hcreate_r()
114 nel = MAX_BUCKETS; in hcreate_r()
117 if ((nel & (nel - 1)) != 0) { in hcreate_r()
118 for (p2 = 0; nel != 0; p2++) in hcreate_r()
119 nel >>= 1; in hcreate_r()
121 nel = 1 << p2; in hcreate_r()
125 head->size = nel; in hcreate_r()
128 errno = reallocarr(&table, nel, sizeof(*table)); in hcreate_r()
134 for (idx = 0; idx < nel; idx++) in hcreate_r()