3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-09-15 14:11:29 +00:00

Added emscripten (emcc) support to build system and some build fixes

This commit is contained in:
Clifford Wolf 2014-08-22 16:09:13 +02:00
parent ba83a7bdc6
commit 98442e019d
11 changed files with 101 additions and 14 deletions

View file

@ -844,7 +844,11 @@ 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.bits = std::vector<RTLIL::State>(width, RTLIL::State::Sx);
} else {
bool is_negative = v < 0;