diff options
author | Paul Zimmermann <Paul.Zimmermann@inria.fr> | 2020-02-05 21:38:56 +0100 |
---|---|---|
committer | Paul Zimmermann <Paul.Zimmermann@inria.fr> | 2020-02-05 21:38:56 +0100 |
commit | ad85d001a8cbc00f3255d0d3e0a97455d1f8ed03 (patch) | |
tree | c441415f1fe36587556c1dd85da57c50bc594222 /tests/mpcheck-float.c | |
parent | a7ecbd9ce61979eea0180ed7f7d3805c45eac460 (diff) | |
download | mpc-git-ad85d001a8cbc00f3255d0d3e0a97455d1f8ed03.tar.gz |
added mpcheck-longdouble and mpcheck-float128
Diffstat (limited to 'tests/mpcheck-float.c')
-rw-r--r-- | tests/mpcheck-float.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/mpcheck-float.c b/tests/mpcheck-float.c index 10be8d1..e056c86 100644 --- a/tests/mpcheck-float.c +++ b/tests/mpcheck-float.c @@ -1,4 +1,4 @@ -/* mpcheck-double -- compare mpc functions against "float complex" +/* mpcheck-float -- compare mpc functions against "float complex" from the GNU libc implementation Copyright (C) 2020 INRIA @@ -43,6 +43,7 @@ along with this program. If not, see http://www.gnu.org/licenses/ . #define PRECISION 24 #define EMAX 128 #define TYPE float +#define SUFFIX f #define mpfr_set_type mpfr_set_flt @@ -196,8 +197,8 @@ main (int argc, char *argv[]) } } - /* set exponent range for 'float' */ - mpfr_set_emin (-EMAX - PRECISION + 4); + /* set exponent range */ + mpfr_set_emin (-EMAX - PRECISION + 4); /* should be -148 */ mpfr_set_emax (EMAX); gmp_randinit_default (state); |