Searched refs:HASH_MASK (Results 1 – 3 of 3) sorted by relevance
44 #define HASH_MASK (HASH_SIZE - 1) macro103 while ((g = cache->glyphs[idx++ & HASH_MASK])) in lookup_glyph()130 loc = &cache->glyphs[idx++ & HASH_MASK]; in insert_glyph()147 while (cache->glyphs[idx & HASH_MASK] != glyph) in remove_glyph()150 cache->glyphs[idx & HASH_MASK] = TOMBSTONE; in remove_glyph()155 if (cache->glyphs[(idx + 1) & HASH_MASK] == NULL) in remove_glyph()157 while (cache->glyphs[idx & HASH_MASK] == TOMBSTONE) in remove_glyph()159 cache->glyphs[idx & HASH_MASK] = NULL; in remove_glyph()
10 #define HASH_MASK (HASH_BUCKETS - 1) macro19 return jhash(name, strlen(name), 0) & HASH_MASK; in hash()
27 #define HASH_MASK 32767 macro88 h->val = (((h->val) << HASH_SHIFT) ^ (c)) & HASH_MASK; in UpdateHashValue()