Home | History | Annotate | Download | only in vm

Lines Matching full:pentry

178     HashEntry* pEntry;
187 pEntry = &pHashTable->pEntries[itemHash & (pHashTable->tableSize-1)];
189 while (pEntry->data != NULL) {
190 if (pEntry->data != HASH_TOMBSTONE &&
191 pEntry->hashValue == itemHash &&
192 (*cmpFunc)(pEntry->data, item) == 0)
195 //LOGD("+++ match on entry %d", pEntry - pHashTable->pEntries);
199 pEntry++;
200 if (pEntry == pEnd) { /* wrap around to start */
203 pEntry = pHashTable->pEntries;
206 //LOGI("+++ look probing %d...", pEntry - pHashTable->pEntries);
209 if (pEntry->data == NULL) {
211 pEntry->hashValue = itemHash;
212 pEntry->data = item;
226 /* note "pEntry" is now invalid */
240 result = pEntry->data;
253 HashEntry* pEntry;
259 pEntry = &pHashTable->pEntries[itemHash & (pHashTable->tableSize-1)];
261 while (pEntry->data != NULL) {
262 if (pEntry->data == item) {
263 //LOGI("+++ stepping on entry %d", pEntry - pHashTable->pEntries);
264 pEntry->data = HASH_TOMBSTONE;
270 pEntry++;
271 if (pEntry == pEnd) { /* wrap around to start */
274 pEntry = pHashTable->pEntries;
277 //LOGI("+++ del probing %d...", pEntry - pHashTable->pEntries);
346 HashEntry* pEntry;
355 pEntry = &pHashTable->pEntries[itemHash & (pHashTable->tableSize-1)];
357 while (pEntry->data != NULL) {
358 if (pEntry->data != HASH_TOMBSTONE &&
359 pEntry->hashValue == itemHash &&
360 (*cmpFunc)(pEntry->data, item) == 0)
366 pEntry++;
367 if (pEntry == pEnd) { /* wrap around to start */
370 pEntry = pHashTable->pEntries;
375 if (pEntry->data == NULL)