Lines Matching refs:hashcode
142 int32_t hashcode, in _uhash_setElement() argument
173 e->hashcode = hashcode; in _uhash_setElement()
183 U_ASSERT(!IS_EMPTY_OR_DELETED(e->hashcode)); in _uhash_internalRemoveElement()
237 p->hashcode = HASH_EMPTY; in _uhash_allocate()
332 int32_t hashcode) { in _uhash_find() argument
340 hashcode &= 0x7FFFFFFF; /* must be positive */ in _uhash_find()
341 startIndex = theIndex = (hashcode ^ 0x4000000) % hash->length; in _uhash_find()
344 tableHash = elements[theIndex].hashcode; in _uhash_find()
345 if (tableHash == hashcode) { /* quick check */ in _uhash_find()
364 jump = (hashcode % (hash->length - 1)) + 1; in _uhash_find()
421 if (!IS_EMPTY_OR_DELETED(old[i].hashcode)) { in _uhash_rehash()
422 UHashElement *e = _uhash_find(hash, old[i].key, old[i].hashcode); in _uhash_rehash()
424 U_ASSERT(e->hashcode == HASH_EMPTY); in _uhash_rehash()
427 e->hashcode = old[i].hashcode; in _uhash_rehash()
450 if (!IS_EMPTY_OR_DELETED(e->hashcode)) { in _uhash_remove()
472 int32_t hashcode; in _uhash_put() local
494 hashcode = (*hash->keyHasher)(key); in _uhash_put()
495 e = _uhash_find(hash, key, hashcode); in _uhash_put()
498 if (IS_EMPTY_OR_DELETED(e->hashcode)) { in _uhash_put()
519 return _uhash_setElement(hash, e, hashcode & 0x7FFFFFFF, key, value, hint); in _uhash_put()
776 return IS_EMPTY_OR_DELETED(e->hashcode) ? NULL : e; in uhash_find()
787 if (!IS_EMPTY_OR_DELETED(hash->elements[i].hashcode)) { in uhash_nextElement()
801 if (!IS_EMPTY_OR_DELETED(e->hashcode)) { in uhash_removeElement()