mirror of
https://github.com/YosysHQ/yosys
synced 2025-09-28 12:19:01 +00:00
Renamed SIZE() to GetSize() because of name collision on Win32
This commit is contained in:
parent
c7f5aab625
commit
4569a747f8
48 changed files with 447 additions and 447 deletions
|
@ -43,7 +43,7 @@ struct FsmOpt
|
|||
std::vector<RTLIL::Const> new_state_table;
|
||||
std::map<int, int> old_to_new_state;
|
||||
|
||||
for (int i = 0; i < SIZE(fsm_data.state_table); i++)
|
||||
for (int i = 0; i < GetSize(fsm_data.state_table); i++)
|
||||
if (i != fsm_data.reset_state)
|
||||
unreachable_states.insert(i);
|
||||
|
||||
|
@ -53,12 +53,12 @@ struct FsmOpt
|
|||
if (unreachable_states.empty())
|
||||
break;
|
||||
|
||||
for (int i = 0; i < SIZE(fsm_data.state_table); i++) {
|
||||
for (int i = 0; i < GetSize(fsm_data.state_table); i++) {
|
||||
if (unreachable_states.count(i)) {
|
||||
log(" Removing unreachable state %s.\n", log_signal(fsm_data.state_table[i]));
|
||||
continue;
|
||||
}
|
||||
old_to_new_state[i] = SIZE(new_state_table);
|
||||
old_to_new_state[i] = GetSize(new_state_table);
|
||||
new_state_table.push_back(fsm_data.state_table[i]);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue