diff options
author | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2014-01-20 17:20:08 +0000 |
---|---|---|
committer | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2014-01-20 17:20:08 +0000 |
commit | 2e849565dc7326140dbced716b817d8387cec4cb (patch) | |
tree | 1cfec03a3a56a33a7f95ff4c1a3a68e2490fd76e /tools/mbench | |
parent | 50bf6557c3a772c328183479d0b801c7601f389d (diff) | |
download | mpfr-2e849565dc7326140dbced716b817d8387cec4cb.tar.gz |
added mpfr_fma
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@8810 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tools/mbench')
-rw-r--r-- | tools/mbench/mfv5-mpfr.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/mbench/mfv5-mpfr.cc b/tools/mbench/mfv5-mpfr.cc index eed3638bb..add4cb582 100644 --- a/tools/mbench/mfv5-mpfr.cc +++ b/tools/mbench/mfv5-mpfr.cc @@ -68,6 +68,14 @@ public: return mpfr_mul (a,b,c,r); } }; + +class mpfr_fma_test { +public: + int func(mpfr_ptr a, mpfr_srcptr b, mpfr_srcptr c, mp_rnd_t r) { + return mpfr_fma (a,b,b,c,r); + } +}; + class mpfr_div_test { public: int func(mpfr_ptr a, mpfr_srcptr b, mpfr_srcptr c, mp_rnd_t r) { @@ -188,6 +196,7 @@ public: static mpfr_test<mpfr_add_test> test1 ("mpfr_add"); static mpfr_test<mpfr_sub_test> test2 ("mpfr_sub"); static mpfr_test<mpfr_mul_test> test3 ("mpfr_mul"); +static mpfr_test<mpfr_fma_test> test10 ("mpfr_fma"); static mpfr_test<mpfr_div_test> test4 ("mpfr_div"); static mpfr_test<mpfr_set_test> test5 ("mpfr_set"); |