tidy round1

This commit is contained in:
James Cherry
2026-04-13 14:59:05 -07:00
parent 0a8a86d606
commit 63efee64bf
328 changed files with 3030 additions and 3441 deletions
+9 -9
View File
@@ -47,7 +47,7 @@ enum class PwrActivityOrigin
class PwrActivity
{
public:
PwrActivity();
PwrActivity() = default;
PwrActivity(float density,
float duty,
PwrActivityOrigin origin);
@@ -67,9 +67,9 @@ public:
private:
void check();
float density_; // transitions / second
float duty_; // probability signal is high
PwrActivityOrigin origin_;
float density_{0.0}; // transitions / second
float duty_{0.0}; // probability signal is high
PwrActivityOrigin origin_{PwrActivityOrigin::unknown};
static constexpr float min_density = 1E-10;
};
@@ -77,7 +77,7 @@ private:
class PowerResult
{
public:
PowerResult();
PowerResult() = default;
void clear();
float internal() const { return internal_; }
float switching() const { return switching_; }
@@ -89,12 +89,12 @@ public:
void incrLeakage(float pwr);
private:
float internal_;
float switching_;
float leakage_;
float internal_{0.0};
float switching_{0.0};
float leakage_{0.0};
};
using InstPower = std::pair<const Instance*, PowerResult>;
using InstPowers = std::vector<InstPower>;
} // namespace
} // namespace sta