From e8602fb56dce316be506fb69a12f6380eb113712 Mon Sep 17 00:00:00 2001 From: rowanG077 Date: Thu, 28 Sep 2023 14:26:13 +0200 Subject: [PATCH] std::numeric_limits::lowest() -> ::min() --- common/kernel/timing.cc | 2 +- common/route/router1.cc | 6 +++--- fpga_interchange/cost_map.cc | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/common/kernel/timing.cc b/common/kernel/timing.cc index 7b66c52b..7256ed1b 100644 --- a/common/kernel/timing.cc +++ b/common/kernel/timing.cc @@ -770,7 +770,7 @@ void TimingAnalyser::build_detailed_net_timing_report() std::vector TimingAnalyser::get_worst_eps(domain_id_t domain_pair, int count) { std::vector worst_eps; - delay_t last_slack = std::numeric_limits::min(); + delay_t last_slack = std::numeric_limits::lowest(); auto &dp = domain_pairs.at(domain_pair); auto &cap_d = domains.at(dp.key.capture); while (int(worst_eps.size()) < count) { diff --git a/common/route/router1.cc b/common/route/router1.cc index e4b29372..e832177d 100644 --- a/common/route/router1.cc +++ b/common/route/router1.cc @@ -811,7 +811,7 @@ struct Router1 for (auto &usr : ni->users) { ++arc_count; delay_t slack = tmg.get_setup_slack(CellPortKey(usr)); - if (slack == std::numeric_limits::min()) + if (slack == std::numeric_limits::lowest()) continue; if (slack < default_thresh) ++failed_count; @@ -829,7 +829,7 @@ struct Router1 continue; for (auto &usr : ni->users) { delay_t slack = tmg.get_setup_slack(CellPortKey(usr)); - if (slack == std::numeric_limits::min()) + if (slack == std::numeric_limits::lowest()) continue; slacks.push_back(slack); } @@ -941,7 +941,7 @@ bool router1(Context *ctx, const Router1Cfg &cfg) continue; for (auto &usr : ni->users) { delay_t slack = router.tmg.get_setup_slack(CellPortKey(usr)); - if (slack == std::numeric_limits::min()) + if (slack == std::numeric_limits::lowest()) continue; if (slack < 0) { wns = std::min(wns, slack); diff --git a/fpga_interchange/cost_map.cc b/fpga_interchange/cost_map.cc index d960c7cf..1062bfd6 100644 --- a/fpga_interchange/cost_map.cc +++ b/fpga_interchange/cost_map.cc @@ -318,7 +318,7 @@ void CostMap::fill_holes(const Context *ctx, const TypeWirePair &type_pair, boos delay_t CostMap::get_penalty(const boost::multi_array &matrix) const { delay_t min_delay = std::numeric_limits::max(); - delay_t max_delay = std::numeric_limits::min(); + delay_t max_delay = std::numeric_limits::lowest(); std::pair min_location(0, 0), max_location(0, 0); for (unsigned ix = 0; ix < matrix.shape()[0]; ix++) {