Lines Matching refs:hash
91 uint64_t hash = 0xcbf29ce484222325ULL; in fnv1a_hash() local
95 hash ^= key[i]; in fnv1a_hash()
96 hash *= 0x00000100000001B3ULL; in fnv1a_hash()
98 return hash; in fnv1a_hash()
124 uint64_t hash; member
469 oldhash = oldmd->neighborhoods[oldi].entries[oldj].hash; in grow_hashtable()
475 newmd->neighborhoods[newi].entries[newj].hash = oldhash; in grow_hashtable()
540 static int ossl_ht_insert_locked(HT *h, uint64_t hash, in ossl_ht_insert_locked() argument
545 uint64_t neigh_idx_start = hash & md->neighborhood_mask; in ossl_ht_insert_locked()
565 if (!CRYPTO_atomic_load(&md->neighborhoods[neigh_idx].entries[j].hash, in ossl_ht_insert_locked()
568 if (compare_hash(hash, ihash) && match_key(&newval->value.key, in ossl_ht_insert_locked()
575 if (!CRYPTO_atomic_store(&md->neighborhoods[neigh_idx].entries[j].hash, in ossl_ht_insert_locked()
576 hash, h->atomic_lock)) in ossl_ht_insert_locked()
596 if (!CRYPTO_atomic_store(&md->neighborhoods[neigh_idx].entries[empty_idx].hash, in ossl_ht_insert_locked()
597 hash, h->atomic_lock)) in ossl_ht_insert_locked()
642 uint64_t hash; in ossl_ht_insert() local
657 hash = h->config.ht_hash_fn(key->keybuf, key->keysize); in ossl_ht_insert()
660 (rc = ossl_ht_insert_locked(h, hash, newval, olddata)) == -1 in ossl_ht_insert()
678 uint64_t hash; in ossl_ht_get() local
686 hash = h->config.ht_hash_fn(key->keybuf, key->keysize); in ossl_ht_get()
689 neigh_idx = neigh_idx_start = hash & md->neighborhood_mask; in ossl_ht_get()
700 if (!CRYPTO_atomic_load(&md->neighborhoods[neigh_idx].entries[j].hash, in ossl_ht_get()
703 if (compare_hash(hash, ehash) && match_key(&ival->value.key, key)) in ossl_ht_get()
725 uint64_t hash; in ossl_ht_delete() local
735 hash = h->config.ht_hash_fn(key->keybuf, key->keysize); in ossl_ht_delete()
737 neigh_idx = hash & h->md->neighborhood_mask; in ossl_ht_delete()
743 if (compare_hash(hash, h->md->neighborhoods[neigh_idx].entries[j].hash) in ossl_ht_delete()
745 if (!CRYPTO_atomic_store(&h->md->neighborhoods[neigh_idx].entries[j].hash, in ossl_ht_delete()