diff options
author | David Shah <davey1576@gmail.com> | 2018-08-04 08:18:04 +0200 |
---|---|---|
committer | David Shah <davey1576@gmail.com> | 2018-08-04 08:18:04 +0200 |
commit | 082b8bf272bf09b6ea2ee7aec4682a4eb2e5bfde (patch) | |
tree | 2976db953abbdbaf344fd04c7eb1b75bf8371e2a /common/placer1.cc | |
parent | 176a23936c8301eb567ea2a0b466dbebc598b18b (diff) | |
download | nextpnr-082b8bf272bf09b6ea2ee7aec4682a4eb2e5bfde.tar.gz nextpnr-082b8bf272bf09b6ea2ee7aec4682a4eb2e5bfde.tar.bz2 nextpnr-082b8bf272bf09b6ea2ee7aec4682a4eb2e5bfde.zip |
clangformat
Signed-off-by: David Shah <davey1576@gmail.com>
Diffstat (limited to 'common/placer1.cc')
-rw-r--r-- | common/placer1.cc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/common/placer1.cc b/common/placer1.cc index 2ac6602b..32074220 100644 --- a/common/placer1.cc +++ b/common/placer1.cc @@ -45,7 +45,7 @@ NEXTPNR_NAMESPACE_BEGIN class SAPlacer { -public: + public: SAPlacer(Context *ctx, Placer1Cfg cfg) : ctx(ctx), cfg(cfg) { int num_bel_types = 0; @@ -60,11 +60,11 @@ public: type_idx = bel_types.at(type); } if (int(fast_bels.size()) < type_idx + 1) - fast_bels.resize(type_idx + 1); + fast_bels.resize(type_idx + 1); if (int(fast_bels.at(type_idx).size()) < (loc.x + 1)) - fast_bels.at(type_idx).resize(loc.x + 1); + fast_bels.at(type_idx).resize(loc.x + 1); if (int(fast_bels.at(type_idx).at(loc.x).size()) < (loc.y + 1)) - fast_bels.at(type_idx).at(loc.x).resize(loc.y + 1); + fast_bels.at(type_idx).at(loc.x).resize(loc.y + 1); max_x = std::max(max_x, loc.x); max_y = std::max(max_y, loc.y); fast_bels.at(type_idx).at(loc.x).at(loc.y).push_back(bel); @@ -281,7 +281,7 @@ public: return true; } -private: + private: // Initial random placement void place_initial(CellInfo *cell) { @@ -290,7 +290,7 @@ private: while (!all_placed) { BelId best_bel = BelId(); uint64_t best_score = std::numeric_limits<uint64_t>::max(), - best_ripup_score = std::numeric_limits<uint64_t>::max(); + best_ripup_score = std::numeric_limits<uint64_t>::max(); CellInfo *ripup_target = nullptr; BelId ripup_bel = BelId(); if (cell->bel != BelId()) { @@ -410,7 +410,7 @@ private: metrics.at(new_wl.first) = new_wl.second; return true; - swap_fail: + swap_fail: ctx->bindBel(oldBel, cell->name, STRENGTH_WEAK); if (other != IdString()) { ctx->bindBel(newBel, other, STRENGTH_WEAK); |