Remove custom implementations of isinf and isnan
Use the ones from the <cmath> header instead, now that that is available on all the currently supported versions of MSVC.
This commit is contained in:
parent
6b72472f28
commit
f6cc939499
3 changed files with 4 additions and 32 deletions
|
|
@ -1208,12 +1208,12 @@ bool TOutputTraverser::visitSelection(TVisit /* visit */, TIntermSelection* node
|
|||
// - shows all digits, no premature rounding
|
||||
static void OutputDouble(TInfoSink& out, double value, TOutputTraverser::EExtraOutput extra)
|
||||
{
|
||||
if (IsInfinity(value)) {
|
||||
if (std::isinf(value)) {
|
||||
if (value < 0)
|
||||
out.debug << "-1.#INF";
|
||||
else
|
||||
out.debug << "+1.#INF";
|
||||
} else if (IsNan(value))
|
||||
} else if (std::isnan(value))
|
||||
out.debug << "1.#IND";
|
||||
else {
|
||||
const int maxSize = 340;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue