• Home
  • Raw
  • Download

Lines Matching refs:hashcode

147                   int32_t hashcode,  in _uhash_setElement()  argument
178 e->hashcode = hashcode; in _uhash_setElement()
188 U_ASSERT(!IS_EMPTY_OR_DELETED(e->hashcode)); in _uhash_internalRemoveElement()
242 p->hashcode = HASH_EMPTY; in _uhash_allocate()
337 int32_t hashcode) { in _uhash_find() argument
345 hashcode &= 0x7FFFFFFF; /* must be positive */ in _uhash_find()
346 startIndex = theIndex = (hashcode ^ 0x4000000) % hash->length; in _uhash_find()
349 tableHash = elements[theIndex].hashcode; in _uhash_find()
350 if (tableHash == hashcode) { /* quick check */ in _uhash_find()
369 jump = (hashcode % (hash->length - 1)) + 1; in _uhash_find()
425 if (!IS_EMPTY_OR_DELETED(old[i].hashcode)) { in _uhash_rehash()
426 UHashElement *e = _uhash_find(hash, old[i].key, old[i].hashcode); in _uhash_rehash()
428 U_ASSERT(e->hashcode == HASH_EMPTY); in _uhash_rehash()
431 e->hashcode = old[i].hashcode; in _uhash_rehash()
454 if (!IS_EMPTY_OR_DELETED(e->hashcode)) { in _uhash_remove()
476 int32_t hashcode; in _uhash_put() local
499 hashcode = (*hash->keyHasher)(key); in _uhash_put()
500 e = _uhash_find(hash, key, hashcode); in _uhash_put()
503 if (IS_EMPTY_OR_DELETED(e->hashcode)) { in _uhash_put()
524 return _uhash_setElement(hash, e, hashcode & 0x7FFFFFFF, key, value, hint); in _uhash_put()
700 *found = !IS_EMPTY_OR_DELETED(e->hashcode); in uhash_getiAndFound()
711 *found = !IS_EMPTY_OR_DELETED(e->hashcode); in uhash_igetiAndFound()
845 return !IS_EMPTY_OR_DELETED(e->hashcode); in uhash_containsKey()
860 return !IS_EMPTY_OR_DELETED(e->hashcode); in uhash_icontainsKey()
869 return IS_EMPTY_OR_DELETED(e->hashcode) ? NULL : e; in uhash_find()
880 if (!IS_EMPTY_OR_DELETED(hash->elements[i].hashcode)) { in uhash_nextElement()
894 if (!IS_EMPTY_OR_DELETED(e->hashcode)) { in uhash_removeElement()