mirror of
https://github.com/YosysHQ/yosys
synced 2025-08-26 04:56:05 +00:00
Import more std:: stuff into Yosys namespace
This commit is contained in:
parent
da923c198e
commit
207736b4ee
39 changed files with 168 additions and 161 deletions
|
@ -568,7 +568,7 @@ struct EvalPass : public Pass {
|
|||
if (tab_column_width.size() < row.size())
|
||||
tab_column_width.resize(row.size());
|
||||
for (size_t i = 0; i < row.size(); i++)
|
||||
tab_column_width[i] = std::max(tab_column_width[i], int(row[i].size()));
|
||||
tab_column_width[i] = max(tab_column_width[i], int(row[i].size()));
|
||||
}
|
||||
|
||||
log("\n");
|
||||
|
|
|
@ -265,7 +265,7 @@ struct PerformReduction
|
|||
}
|
||||
int max_child_depth = 0;
|
||||
for (auto &bit : drv.second)
|
||||
max_child_depth = std::max(register_cone_worker(celldone, sigdepth, bit), max_child_depth);
|
||||
max_child_depth = max(register_cone_worker(celldone, sigdepth, bit), max_child_depth);
|
||||
sigdepth[out] = max_child_depth + 1;
|
||||
} else {
|
||||
pi_bits.push_back(out);
|
||||
|
|
|
@ -606,8 +606,8 @@ struct SatHelper
|
|||
int maxModelWidth = 10;
|
||||
|
||||
for (auto &info : modelInfo) {
|
||||
maxModelName = std::max(maxModelName, int(info.description.size()));
|
||||
maxModelWidth = std::max(maxModelWidth, info.width);
|
||||
maxModelName = max(maxModelName, int(info.description.size()));
|
||||
maxModelWidth = max(maxModelWidth, info.width);
|
||||
}
|
||||
|
||||
log("\n");
|
||||
|
@ -781,9 +781,9 @@ struct SatHelper
|
|||
|
||||
wavedata[info.description].first = info.width;
|
||||
wavedata[info.description].second[info.timestep] = value;
|
||||
mintime = std::min(mintime, info.timestep);
|
||||
maxtime = std::max(maxtime, info.timestep);
|
||||
maxwidth = std::max(maxwidth, info.width);
|
||||
mintime = min(mintime, info.timestep);
|
||||
maxtime = max(maxtime, info.timestep);
|
||||
maxwidth = max(maxwidth, info.width);
|
||||
}
|
||||
|
||||
fprintf(f, "{ \"signal\": [");
|
||||
|
@ -1116,7 +1116,7 @@ struct SatPass : public Pass {
|
|||
continue;
|
||||
}
|
||||
if (args[argidx] == "-stepsize" && argidx+1 < args.size()) {
|
||||
stepsize = std::max(1, atoi(args[++argidx].c_str()));
|
||||
stepsize = max(1, atoi(args[++argidx].c_str()));
|
||||
continue;
|
||||
}
|
||||
if (args[argidx] == "-ignore_div_by_zero") {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue