removed
[libfirm] / ir / ident / ident_t.h
1 /*
2  * Project:     libFIRM
3  * File name:   ir/common/ident_t.h
4  * Purpose:     Hash table to store names -- private header.
5  * Author:      Goetz Lindenmaier
6  * Modified by:
7  * Created:
8  * CVS-ID:      $Id$
9  * Copyright:   (c) 1999-2003 Universität Karlsruhe
10  * Licence:     This file protected by GPL -  GNU GENERAL PUBLIC LICENSE.
11  */
12
13 # ifndef _IDENT_T_H_
14 # define _IDENT_T_H_
15
16 # include "ident.h"
17
18 void id_init (int initial_n_idents);
19
20 #define ID_HASH(str, len) \
21   (((  ((unsigned char *)(str))[0] * 33 \
22      + ((unsigned char *)(str))[(len)>>1]) * 31 \
23     + ((unsigned char *)(str))[(len)-1]) * 9 \
24    + (len))
25
26 # endif /* _IDENT_T_H_ */