We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3edffbd commit 86e3aa1Copy full SHA for 86e3aa1
src/pad/src/PadPlacer.cpp
@@ -413,9 +413,8 @@ void UniformPadPlacer::place()
413
= static_cast<float>(getRowWidth() - getTotalInstWidths())
414
/ (getInsts().size() + 1);
415
if (max_spacing_) {
416
- if (*max_spacing_ < initial_target_spacing) {
417
- initial_target_spacing = *max_spacing_;
418
- }
+ initial_target_spacing
+ = std::min<float>(*max_spacing_, initial_target_spacing);
419
}
420
const int site_width = std::min(getRow()->getSite()->getWidth(),
421
getRow()->getSite()->getHeight());
0 commit comments