Lines Matching defs:htsize
332 #define _NSC_ELF_STR_GETHASH(func, str, htsize, hval) \
341 hval %= htsize;
348 cis_gethash(const char *key, int htsize) {
352 _NSC_ELF_STR_GETHASH(tolower, key, htsize, hval);
361 ces_gethash(const char *key, int htsize) {
365 _NSC_ELF_STR_GETHASH(, key, htsize, hval);
374 db_gethash(const void *key, int len, int htsize) {
389 return (hval % htsize);
397 nsc_db_cis_key_gethash(nss_XbyY_key_t *key, int htsize) {
398 return (cis_gethash(key->name, htsize));
406 nsc_db_ces_key_gethash(nss_XbyY_key_t *key, int htsize) {
407 return (ces_gethash(key->name, htsize));
415 nsc_db_int_key_gethash(nss_XbyY_key_t *key, int htsize) {
416 return (db_gethash(&key->number, sizeof (key->number), htsize));
435 *hash = nscdb->gethash(&entry->key, nscdb->htsize);
562 for (i = 0; i < nscdb->htsize; i++) {
699 enum hash_type httype, int htsize)
747 if (htsize != 0) {
750 if (htsize < 0) {
753 htsize = _NSC_INIT_HTSIZE_POWER2;
758 htsize = _NSC_INIT_HTSIZE_PRIME;
761 nscdb->htsize = htsize;
764 nscdb->htable = calloc(htsize, sizeof (*(nscdb->htable)));
2303 if (nscdb->htsize == 0) {
2327 if (nscdb->htsize == newhtsize) {
2334 nscdb->name, nscdb->htsize, newhtsize);
2347 nscdb->htsize = -1;
2349 nscdb->htsize = newhtsize;