diff options
author | Erik Schnetter <schnetter@gmail.com> | 2013-03-21 23:57:37 -0400 |
---|---|---|
committer | Erik Schnetter <schnetter@gmail.com> | 2013-03-21 23:57:37 -0400 |
commit | 5713098ff2868deb25e487086bcbef91e4ccc18f (patch) | |
tree | 96fa651caeb15dab0ec0abd67338c3b2e2604a5b /test.cc | |
parent | 1dae8653132405bcaada3cbf29f0eac666e8f376 (diff) | |
download | vecmathlib-5713098ff2868deb25e487086bcbef91e4ccc18f.zip vecmathlib-5713098ff2868deb25e487086bcbef91e4ccc18f.tar.gz |
Don't test nan/inf if they are not supported
Diffstat (limited to 'test.cc')
-rw-r--r-- | test.cc | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -406,10 +406,18 @@ struct vecmathlib_test { check("fmax", fmax, vecmathlib::fmax, x, y, 0.0); check("fmin", fmin, vecmathlib::fmin, x, y, 0.0); check("ilogb", ilogb, vecmathlib::ilogb, x); +#if defined VML_HAVE_INF && defined VML_HAVE_NAN check("isfinite", isfinite, vecmathlib::isfinite, x); +#endif +#ifdef VML_HAVE_INF check("isinf", isinf, vecmathlib::isinf, x); +#endif +#ifdef VML_HAVE_NAN check("isnan", isnan, vecmathlib::isnan, x); +#endif +#ifdef VML_HAVE_DENORMALS check("isnormal", isnormal, vecmathlib::isnormal, x); +#endif check("ldexp", ldexp, vecmathlib::ldexp, x, n, 0.0); check("signbit", signbit, vecmathlib::signbit, x); } |