mirror of
https://github.com/YosysHQ/yosys.git
synced 2026-09-04 03:23:11 +02:00
log2(0) returns -inf, which gives undefined behaviour when casting to an int. So catch the case when it's 0 just set the width to 0.
log2(0) returns -inf, which gives undefined behaviour when casting to an int. So catch the case when it's 0 just set the width to 0.