3 * File name: ir/common/ident_t.h
4 * Purpose: Hash table to store names -- private header.
5 * Author: Goetz Lindenmaier
9 * Copyright: (c) 1999-2003 Universität Karlsruhe
10 * Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE.
18 void id_init (int initial_n_idents);
19 void id_finish (void);
21 #define ID_HASH(str, len) \
22 ((( ((unsigned char *)(str))[0] * 33 \
23 + ((unsigned char *)(str))[(len)>>1]) * 31 \
24 + ((unsigned char *)(str))[(len)-1]) * 9 \
27 # endif /* _IDENT_T_H_ */