aboutsummaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2018-06-20 12:57:59 +0200
committerClifford Wolf <clifford@clifford.at>2018-06-20 12:57:59 +0200
commit7c3593ea5acef05546be8835e25cf5e4b18549ee (patch)
treea72c2ac2c796c0881e11171b3670eccd3ce832af /common
parentcb9c6c6ef271a6f5297d74c81807bca01a0d8319 (diff)
downloadnextpnr-7c3593ea5acef05546be8835e25cf5e4b18549ee.tar.gz
nextpnr-7c3593ea5acef05546be8835e25cf5e4b18549ee.tar.bz2
nextpnr-7c3593ea5acef05546be8835e25cf5e4b18549ee.zip
Updates from clangformat
Signed-off-by: Clifford Wolf <clifford@clifford.at>
Diffstat (limited to 'common')
-rw-r--r--common/place_sa.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/common/place_sa.cc b/common/place_sa.cc
index 3162d88c..55ec9b9a 100644
--- a/common/place_sa.cc
+++ b/common/place_sa.cc
@@ -374,8 +374,9 @@ class SAPlacer
delta = new_wirelength - curr_wirelength;
n_move++;
// SA acceptance criterea
- if (delta < 0 || (temp > 1e-6 && (ctx->rng() / float(0x3fffffff)) <=
- std::exp(-delta / temp))) {
+ if (delta < 0 ||
+ (temp > 1e-6 &&
+ (ctx->rng() / float(0x3fffffff)) <= std::exp(-delta / temp))) {
n_accept++;
if (delta < 0)
improved = true;