Lines Matching refs:hashcode
145 int32_t hashcode, in _uhash_setElement() argument
176 e->hashcode = hashcode; in _uhash_setElement()
186 U_ASSERT(!IS_EMPTY_OR_DELETED(e->hashcode)); in _uhash_internalRemoveElement()
240 p->hashcode = HASH_EMPTY; in _uhash_allocate()
335 int32_t hashcode) { in _uhash_find() argument
343 hashcode &= 0x7FFFFFFF; /* must be positive */ in _uhash_find()
344 startIndex = theIndex = (hashcode ^ 0x4000000) % hash->length; in _uhash_find()
347 tableHash = elements[theIndex].hashcode; in _uhash_find()
348 if (tableHash == hashcode) { /* quick check */ in _uhash_find()
367 jump = (hashcode % (hash->length - 1)) + 1; in _uhash_find()
423 if (!IS_EMPTY_OR_DELETED(old[i].hashcode)) { in _uhash_rehash()
424 UHashElement *e = _uhash_find(hash, old[i].key, old[i].hashcode); in _uhash_rehash()
426 U_ASSERT(e->hashcode == HASH_EMPTY); in _uhash_rehash()
429 e->hashcode = old[i].hashcode; in _uhash_rehash()
452 if (!IS_EMPTY_OR_DELETED(e->hashcode)) { in _uhash_remove()
474 int32_t hashcode; in _uhash_put() local
496 hashcode = (*hash->keyHasher)(key); in _uhash_put()
497 e = _uhash_find(hash, key, hashcode); in _uhash_put()
500 if (IS_EMPTY_OR_DELETED(e->hashcode)) { in _uhash_put()
521 return _uhash_setElement(hash, e, hashcode & 0x7FFFFFFF, key, value, hint); in _uhash_put()
794 return IS_EMPTY_OR_DELETED(e->hashcode) ? NULL : e; in uhash_find()
805 if (!IS_EMPTY_OR_DELETED(hash->elements[i].hashcode)) { in uhash_nextElement()
819 if (!IS_EMPTY_OR_DELETED(e->hashcode)) { in uhash_removeElement()