tests: math_test, use std:isnan vs isnan

* As far as I can tell, you're not supposed to
  use cmath isnan from cpp as the std namespace
  includes it
* libroot Tests now build again.
This commit is contained in:
Alexander von Gluck IV
2015-02-02 18:06:13 +00:00
parent a6c2b2fa63
commit 3b8ca9ebdf
@@ -95,7 +95,7 @@ main(int argc, char **argv)
double g = (double)j/4.0;
double x = copysign(f, g);
double y = be_copysign(f, g);
if ((x != y) && !(isnan(x) && isnan(y))) {
if ((x != y) && !(std::isnan(x) && std::isnan(y))) {
fprintf(stdout, "%0.1f\t%0.1f\t%0.6f\t%0.6f", f, g, x, y);
fprintf(stdout, " **");
fprintf(stdout, "\n");
@@ -113,7 +113,7 @@ main(int argc, char **argv)
double g = (double)j/4.0;
double x = drem(f, g);
double y = be_drem(f, g);
if ((x != y) && !(isnan(x) && isnan(y))) {
if ((x != y) && !(std::isnan(x) && std::isnan(y))) {
fprintf(stdout, "%0.2f\t%0.2f\t%0.10f\t%0.10f", f, g, x, y);
fprintf(stdout, " **");
fprintf(stdout, "\n");