diff options
Diffstat (limited to 'common/router2.cc')
-rw-r--r-- | common/router2.cc | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/common/router2.cc b/common/router2.cc index 27f8ec0d..002a05a3 100644 --- a/common/router2.cc +++ b/common/router2.cc @@ -27,15 +27,15 @@ */ #include "router2.h" -#if !defined(NPNR_DISABLE_THREADS) -#include <absl/container/flat_hash_map.h> -#endif + #include <algorithm> #include <boost/container/flat_map.hpp> #include <chrono> #include <deque> #include <fstream> #include <queue> + +#include "hash_table.h" #include "log.h" #include "nextpnr.h" #include "router1.h" @@ -193,11 +193,7 @@ struct Router2 } } -#if defined(NPNR_DISABLE_THREADS) - std::unordered_map<WireId, int> wire_to_idx; -#else - absl::flat_hash_map<WireId, int> wire_to_idx; -#endif + HashTables::HashMap<WireId, int> wire_to_idx; std::vector<PerWireData> flat_wires; PerWireData &wire_data(WireId w) { return flat_wires[wire_to_idx.at(w)]; } |