Commit b3da8c58 authored by Kyle Lutz's avatar Kyle Lutz Committed by Code Review

Merge topic 'math-remove-debug' into master

f7439b5e BUG: Removed debug statements from IsInf and IsNan.
parents 2ad64f89 f7439b5e
......@@ -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