Lines Matching refs:htsize
331 #define _NSC_ELF_STR_GETHASH(func, str, htsize, hval) \
340 hval %= htsize;
347 cis_gethash(const char *key, int htsize) {
351 _NSC_ELF_STR_GETHASH(tolower, key, htsize, hval);
360 ces_gethash(const char *key, int htsize) {
364 _NSC_ELF_STR_GETHASH(, key, htsize, hval);
373 db_gethash(const void *key, int len, int htsize) {
388 return (hval % htsize);
396 nsc_db_cis_key_gethash(nss_XbyY_key_t *key, int htsize) {
397 return (cis_gethash(key->name, htsize));
405 nsc_db_ces_key_gethash(nss_XbyY_key_t *key, int htsize) {
406 return (ces_gethash(key->name, htsize));
414 nsc_db_int_key_gethash(nss_XbyY_key_t *key, int htsize) {
415 return (db_gethash(&key->number, sizeof (key->number), htsize));
434 *hash = nscdb->gethash(&entry->key, nscdb->htsize);
561 for (i = 0; i < nscdb->htsize; i++) {
698 enum hash_type httype, int htsize) {
746 if (htsize != 0) {
749 if (htsize < 0) {
752 htsize = _NSC_INIT_HTSIZE_POWER2;
757 htsize = _NSC_INIT_HTSIZE_PRIME;
760 nscdb->htsize = htsize;
763 nscdb->htable = calloc(htsize, sizeof (*(nscdb->htable)));
2275 if (nscdb->htsize == 0) {
2298 if (nscdb->htsize == newhtsize) {
2305 nscdb->name, nscdb->htsize, newhtsize);
2319 nscdb->htsize = -1;
2321 nscdb->htsize = newhtsize;