summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@gmail.com>2013-06-13 10:07:15 -0400
committerErik Schnetter <schnetter@gmail.com>2013-06-13 10:07:15 -0400
commit7a439766e5e1805a743b5feddaf32838a45a7028 (patch)
treec5ca2d3d9051b7ea3b14a6bd23551b33b050fb6d
parent1c29216c2b8f59908b6725d5f3c48dadacc6feb6 (diff)
downloadvecmathlib-7a439766e5e1805a743b5feddaf32838a45a7028.zip
vecmathlib-7a439766e5e1805a743b5feddaf32838a45a7028.tar.gz
Allow wrap-around when testing fmod and remainder
-rw-r--r--test.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/test.cc b/test.cc
index 2a0ea52..6baf393 100644
--- a/test.cc
+++ b/test.cc
@@ -1329,20 +1329,20 @@ struct vecmathlib_test {
check_real<RV,RV>("/", local_div, local_div, x, y, accuracy());
check_real<RV>("rcp", local_rcp, vecmathlib::rcp, x, accuracy());
check_real<RV,RV>("fmod(x,y)",
- std::fmod, vecmathlib::fmod, x, y, 2.0*accuracy());
+ std::fmod, vecmathlib::fmod, x, y, 2.0*accuracy(), y);
check_real<RV,RV>("fmod(x,m)",
- std::fmod, vecmathlib::fmod, x, fm, 2.0*accuracy());
+ std::fmod, vecmathlib::fmod, x, fm, 2.0*accuracy(), fm);
check_real<RV,RV>("fmod(n,y)",
- std::fmod, vecmathlib::fmod, fn, y, 2.0*accuracy());
+ std::fmod, vecmathlib::fmod, fn, y, 2.0*accuracy(), y);
check_real<RV,RV>("remainder(x,y)",
std::remainder, vecmathlib::remainder,
- x, y, R(2.0)*accuracy());
+ x, y, R(2.0)*accuracy(), y);
check_real<RV,RV>("remainder(x,m)",
std::remainder, vecmathlib::remainder,
x, fm, R(2.0)*accuracy(), fm);
check_real<RV,RV>("remainder(n,y)",
std::remainder, vecmathlib::remainder,
- fn, y, R(2.0)*accuracy());
+ fn, y, R(2.0)*accuracy(), y);
}
}
OpenPOWER on IntegriCloud