OpenMPI  0.1.1
Hash.h
1 /*
2  This is part of the OTF library. Copyright by ZIH, TU Dresden 2005-2012.
3  Authors: Andreas Knuepfer, Holger Brunst, Ronny Brendel, Thomas Kriebitzsch
4 */
5 
6 #ifndef HASH_H
7 #define HASH_H
8 
9 #ifdef HAVE_CONFIG_H
10 #include "config.h"
11 #endif
12 
13 
14 #include "OTF_inttypes.h"
15 
16 #define HASHSIZE 1024
17 
18 
20 
21  uint32_t src;
22  uint32_t dst;
23 };
24 typedef struct struct_SubEntry SubEntry;
25 
26 
28 
29  uint32_t src;
30  uint32_t dst;
31 
32  SubEntry *children;
33  int childrenc;
34 };
35 typedef struct struct_MainEntry MainEntry;
36 
37 
38 struct struct_Hash {
39 
40  MainEntry entrys[HASHSIZE];
41 };
42 typedef struct struct_Hash Hash;
43 
44 
45 Hash *initHash( void );
46 void closeHash( Hash *hash );
47 uint32_t searchHash( Hash *hash, uint32_t src );
48 void addHash( Hash *hash, uint32_t src, uint32_t dst );
49 
50 #endif /* HASH_H */
Definition: Hash.h:27
Definition: Hash.h:38
Definition: Hash.h:19
Deals with all data type related issues.