mirror of
https://github.com/YosysHQ/yosys
synced 2026-06-06 17:11:01 +00:00
Remove EMSCRIPTEN leftovers
This commit is contained in:
parent
d4ac3b1e7d
commit
102f008194
5 changed files with 4 additions and 89 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue