Commit f7439b5e authored by Marcus D. Hanwell's avatar Marcus D. Hanwell

BUG: Removed debug statements from IsInf and IsNan.

It looks like they were left over debug statements, not something we
want in production code (especially where these can be called in tight
loops).

Change-Id: Id72de40ef8b16f44c6eca1cef7ec5e241777af86
parent 2ad64f89
......@@ -3091,7 +3091,6 @@ int vtkMath::IsInf(double x)
// IEEE-754 infinites have all of their exponent set and none of their
// mantissa set.
vtkTypeInt64 xbits = *reinterpret_cast<vtkTypeInt64*>(&x);
cout << "IsInf of " << xbits << endl;
return ( ((xbits & vtkMathDoubleExponent) == vtkMathDoubleExponent)
&& ((xbits & vtkMathDoubleMantissa) == 0) ) ? 1 : 0;
#else
......@@ -3111,7 +3110,6 @@ int vtkMath::IsNan(double x)
// IEEE-754 NaNs have all of their exponent set and at least one bit in
// their mantissa set.
vtkTypeInt64 xbits = *reinterpret_cast<vtkTypeInt64*>(&x);
cout << "IsNan of " << xbits << endl;
return ( ((xbits & vtkMathDoubleExponent) == vtkMathDoubleExponent)
&& ((xbits & vtkMathDoubleMantissa) != 0) ) ? 1 : 0;
#else
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment