2 * This file is part of libFirm.
3 * Copyright (C) 2012 University of Karlsruhe.
9 * @brief Generic hashset functions
10 * @author Matthias Braun
12 * You have to specialize this header by defining HashSet, HashSetIterator and
20 #define HashSetEntry ValueType
22 typedef struct HashSetEntry {
29 HashSetEntry *entries;
31 size_t enlarge_threshold;
32 size_t shrink_threshold;
37 unsigned entries_version;
39 #ifdef ADDITIONAL_DATA
44 #ifdef HashSetIterator
45 struct HashSetIterator {
46 HashSetEntry *current_bucket;
49 const struct HashSet *set;
50 unsigned entries_version;