Lines Matching defs:hash
302 uint32_t hash = 0;
306 hash = (hash + (c << 4) + (c >> 4)) * 11;
308 hash *= HASH_PRIME;
309 hash >>= 32 - HASHED_INPUT_BITS;
310 return input_stream_hashes + hash;
315 int stream = input_stream_nr, *hash;
337 hash = hash_stream(name);
338 current->next_stream = *hash;
339 *hash = stream;
686 /* hash function for two-character punctuators - all give unique values */
801 #define ident_hash_end(hash) ((((hash) >> IDENT_HASH_BITS) + (hash)) & IDENT_HASH_MASK)
846 static struct ident * insert_hash(struct ident *ident, unsigned long hash)
848 ident->next = hash_table[hash];
849 hash_table[hash] = ident;
854 static struct ident *create_hashed_ident(const char *name, int len, unsigned long hash)
859 p = &hash_table[hash];
882 unsigned long hash;
885 hash = ident_hash_init(*p++);
888 hash = ident_hash_add(hash, i);
890 return ident_hash_end(hash);
919 unsigned long hash;
924 hash = ident_hash_init(c);
932 hash = ident_hash_add(hash, next);
946 hash = ident_hash_end(hash);
947 ident = create_hashed_ident(buf, len, hash);