diff options
author | gatecat <gatecat@ds0.me> | 2022-03-19 18:43:31 +0000 |
---|---|---|
committer | gatecat <gatecat@ds0.me> | 2022-03-19 18:43:31 +0000 |
commit | 774d3944b307a7b26164f728b5910f26b7d873f6 (patch) | |
tree | 1b29c78f1ff10f2b65070968f1675283bea52923 | |
parent | 7703cf61d0170ec3ac9db9a66cc99cbf5a8bbcf3 (diff) | |
download | nextpnr-774d3944b307a7b26164f728b5910f26b7d873f6.tar.gz nextpnr-774d3944b307a7b26164f728b5910f26b7d873f6.tar.bz2 nextpnr-774d3944b307a7b26164f728b5910f26b7d873f6.zip |
parallel_refine: Fix compile error with some configs
Signed-off-by: gatecat <gatecat@ds0.me>
-rw-r--r-- | common/parallel_refine.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/parallel_refine.cc b/common/parallel_refine.cc index bc665cd3..a868ca58 100644 --- a/common/parallel_refine.cc +++ b/common/parallel_refine.cc @@ -546,6 +546,7 @@ struct ThreadState bool accept_move() { + static constexpr double epsilon = 1e-20; double delta = g.cfg.lambda * (timing_delta / std::max<double>(epsilon, g.total_timing_cost)) + (1.0 - g.cfg.lambda) * (double(wirelen_delta) / std::max<double>(epsilon, g.total_wirelen)); return delta < 0 || @@ -565,7 +566,6 @@ struct ThreadState return true; } - static constexpr double epsilon = 1e-20; bool single_cell_swap(CellInfo *cell, BelId new_bel) { NPNR_ASSERT(moved_cells.empty()); |