Skip to content

Commit 9f1a089

Browse files
committed
cts: clang-format
Signed-off-by: arthurjolo <arthurjl@precisioninno.com>
1 parent dbca9dd commit 9f1a089

2 files changed

Lines changed: 9 additions & 8 deletions

File tree

src/cts/src/HTreeBuilder.cpp

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1268,19 +1268,21 @@ void HTreeBuilder::run()
12681268
computeLevelTopology(level, regionWidth, regionHeight);
12691269

12701270
if (options_->getMaxWl()) {
1271-
double maxHPWL
1272-
= topologyForEachLevel_.back().getLargestSinkRegionHPWL(wireSegmentUnit_);
1273-
if (maxHPWL < options_->getMaxWl() && isNumberOfSinksTooSmall(numSinksPerSubRegion)) {
1271+
double maxHPWL = topologyForEachLevel_.back().getLargestSinkRegionHPWL(
1272+
wireSegmentUnit_);
1273+
if (maxHPWL < options_->getMaxWl()
1274+
&& isNumberOfSinksTooSmall(numSinksPerSubRegion)) {
12741275
logger_->info(CTS,
12751276
38,
12761277
" Stop criterion found. Sink region hpwl "
1277-
"is smaller than max wirelength ({}) and max number of sinks is {}.",
1278+
"is smaller than max wirelength ({}) and max number of "
1279+
"sinks is {}.",
12781280
options_->getMaxWl() / options_->getWireSegmentUnit(),
12791281
options_->getMaxFanout() ? options_->getMaxFanout()
1280-
: numMaxLeafSinks_);
1282+
: numMaxLeafSinks_);
12811283
break;
12821284
}
1283-
} else if(isNumberOfSinksTooSmall(numSinksPerSubRegion)) {
1285+
} else if (isNumberOfSinksTooSmall(numSinksPerSubRegion)) {
12841286
logger_->info(CTS,
12851287
32,
12861288
" Stop criterion found. Max number of sinks is {}.",

src/cts/src/HTreeBuilder.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,7 @@ class HTreeBuilder : public TreeBuilder
129129
return branchSinkLocs_[branchIdx];
130130
}
131131

132-
double getLargestSinkRegionHPWL(
133-
unsigned wireSegmentUnit) const
132+
double getLargestSinkRegionHPWL(unsigned wireSegmentUnit) const
134133
{
135134
double bestHpwl = 0.0;
136135
for (unsigned i = 0; i < branchSinkLocs_.size(); ++i) {

0 commit comments

Comments
 (0)