Support $ceil, $floor, etc.

This commit is contained in:
Wilson Snyder
2011-09-28 21:35:26 -04:00
parent 094d676a8b
commit eb6d42acf9
11 changed files with 308 additions and 12 deletions
+1 -1
View File
@@ -546,7 +546,7 @@ public:
}
ofp()->printf(",0x%08" VL_PRI64 "x)", (vluint64_t)(nodep->num().dataWord(0)));
} else if (nodep->isDouble()) {
ofp()->printf("%g", nodep->num().toDouble());
ofp()->printf("%.17g", nodep->num().toDouble());
} else if (nodep->isQuad()) {
vluint64_t num = nodep->toUQuad();
if (num<10) ofp()->printf("VL_ULL(%" VL_PRI64 "d)", num);