*** empty log message ***
[libfirm] / ir / ident / ident_t.h
1 /* Declarations for ident.
2    Copyright (C) 1995, 1996 Markus Armbruster */
3
4 /* Copyright (C) 1998 - 2000 by Universitaet Karlsruhe
5 * All rights reserved.
6 *
7 * Authors: Martin Trapp, Christian Schaefer
8 */
9
10 /* $Id$ */
11
12 # ifndef _IDENT_T_H_
13 # define _IDENT_T_H_
14
15 # include "ident.h"
16
17
18 void id_init (void);
19
20 /* @@@ tune */
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 \
25    + (len))
26
27 # endif /* _IDENT_T_H_ */