summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@gmail.com>2013-07-04 15:36:23 -0400
committerErik Schnetter <schnetter@gmail.com>2013-07-04 15:36:23 -0400
commit297e220ea1fd6d75ff0eb231273622591df24cc6 (patch)
tree4154ca7d272206977ade90c0395ae190f4b9adbf
parent3ca8ed9d4e8fbe0a5faf136cde811aa615457e2a (diff)
downloadvecmathlib-297e220ea1fd6d75ff0eb231273622591df24cc6.zip
vecmathlib-297e220ea1fd6d75ff0eb231273622591df24cc6.tar.gz
Correct condition for when to test isfinite
-rw-r--r--test.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/test.cc b/test.cc
index 4d57136..ff13875 100644
--- a/test.cc
+++ b/test.cc
@@ -1181,7 +1181,7 @@ struct vecmathlib_test {
check_int<RV>("frexp1", local_frexp1, local_vfrexp1, x);
check_int<RV>("ilogb",
local_ilogb, (intvec_t(*)(realvec_t))vecmathlib::ilogb, x);
-#if defined VML_HAVE_INF && defined VML_HAVE_NAN
+#if defined VML_HAVE_INF || defined VML_HAVE_NAN
check_bool<RV>("isfinite", std::isfinite, vecmathlib::isfinite, x);
#endif
#ifdef VML_HAVE_INF
OpenPOWER on IntegriCloud