From ad85d001a8cbc00f3255d0d3e0a97455d1f8ed03 Mon Sep 17 00:00:00 2001 From: Paul Zimmermann Date: Wed, 5 Feb 2020 21:38:56 +0100 Subject: added mpcheck-longdouble and mpcheck-float128 --- tests/mpcheck-float.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'tests/mpcheck-float.c') 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); -- cgit v1.2.1