Lines Matching defs:head
1353 int* head; /*hash value to head circular pos*/
1363 hash->head = (int*)lodepng_malloc(sizeof(int) * HASH_NUM_VALUES);
1368 if(!hash->head || !hash->val || !hash->chain || !hash->zeros) return 83; /*alloc fail*/
1371 for(i = 0; i < HASH_NUM_VALUES; i++) hash->head[i] = -1;
1380 lodepng_free(hash->head);
1418 if(hash->head[hashval] != -1) hash->chain[wpos] = hash->head[hashval];
1419 hash->head[hashval] = wpos;
1480 prevpos = hash->head[hashval];
1554 hash->head[hashval] = -1; /*the same hashchain update will be done, this ensures no wrong alteration*/