3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2026-06-06 09:00:54 +00:00

Remove EMSCRIPTEN leftovers

This commit is contained in:
Miodrag Milanovic 2026-06-05 10:03:27 +02:00
parent d4ac3b1e7d
commit 102f008194
5 changed files with 4 additions and 89 deletions

View file

@ -1079,11 +1079,7 @@ RTLIL::Const AstNode::realAsConst(int width)
{
double v = round(realvalue);
RTLIL::Const result;
#ifdef EMSCRIPTEN
if (!isfinite(v)) {
#else
if (!std::isfinite(v)) {
#endif
result = std::vector<RTLIL::State>(width, RTLIL::State::Sx);
} else {
bool is_negative = v < 0;