diff options
author | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2017-02-09 10:48:50 +0000 |
---|---|---|
committer | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2017-02-09 10:48:50 +0000 |
commit | b557eec74003aca4816cf96ee385ee2538576536 (patch) | |
tree | bbfe260f62a90329f96844ee1fcc16d6eb1e6385 /tools | |
parent | 945a7420eaae920a7322a95f18d0066ed9e545ab (diff) | |
download | mpfr-b557eec74003aca4816cf96ee385ee2538576536.tar.gz |
improved detection of fmma and fmms
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@11297 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tools')
-rw-r--r-- | tools/mbench/Makefile | 2 | ||||
-rw-r--r-- | tools/mbench/mfv5-mpfr.cc | 8 |
2 files changed, 4 insertions, 6 deletions
diff --git a/tools/mbench/Makefile b/tools/mbench/Makefile index c126e84c1..bb264ea7a 100644 --- a/tools/mbench/Makefile +++ b/tools/mbench/Makefile @@ -38,6 +38,8 @@ ARPREC=$(GMP) CRLIBM=$(GMP) LIDIA=/localdisk/lidia/ +GMP_INCLUDE=$(GMP)/include + MPFR_INCLUDE=$(MPFR)/include MPFR_LIB=$(MPFR)/lib diff --git a/tools/mbench/mfv5-mpfr.cc b/tools/mbench/mfv5-mpfr.cc index 48496bae0..4e417fd8a 100644 --- a/tools/mbench/mfv5-mpfr.cc +++ b/tools/mbench/mfv5-mpfr.cc @@ -135,16 +135,14 @@ public: } }; -#ifdef mpfr_fmma +#if MPFR_VERSION_MAJOR >= 4 class mpfr_fmma_test { public: int func(mpfr_ptr a, mpfr_srcptr b, mpfr_srcptr c, mpfr_srcptr d, mpfr_srcptr e, mp_rnd_t r) { return mpfr_fmma (a,b,c,d,e,r); } }; -#endif -#ifdef mpfr_fmms class mpfr_fmms_test { public: int func(mpfr_ptr a, mpfr_srcptr b, mpfr_srcptr c, mpfr_srcptr d, mpfr_srcptr e, mp_rnd_t r) { @@ -281,10 +279,8 @@ static mpfr_test<mpfr_sub_test> test2 ("mpfr_sub"); static mpfr_test<mpfr_mul_test> test3 ("mpfr_mul"); static mpfr_test3<mpfr_fma_test> test10 ("mpfr_fma"); static mpfr_test3<mpfr_fms_test> test11 ("mpfr_fms"); -#ifdef mpfr_fmma +#if MPFR_VERSION_MAJOR >= 4 static mpfr_test4<mpfr_fmma_test> test12 ("mpfr_fmma"); -#endif -#ifdef mpfr_fmms static mpfr_test4<mpfr_fmms_test> test13 ("mpfr_fmms"); #endif static mpfr_test<mpfr_sqr_test> test14 ("mpfr_sqr"); |