aboutsummaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.de>2001-05-07 21:29:40 +0000
committerAndreas Jaeger <aj@suse.de>2001-05-07 21:29:40 +0000
commit4c95adde8b8088d39a29394ce5df87b064d14a85 (patch)
tree1896da24184918ad23a0f4be03b915c0a9c0693d /math
parent8ee20e93a00706af34c10769e1342bf5722c888c (diff)
downloadglibc-4c95adde8b8088d39a29394ce5df87b064d14a85.zip
glibc-4c95adde8b8088d39a29394ce5df87b064d14a85.tar.gz
glibc-4c95adde8b8088d39a29394ce5df87b064d14a85.tar.bz2
Update.
* sysdeps/i386/fpu/libm-test-ulps: Add ulps for new exp tests. * math/libm-test.inc (exp_test): Add some more tests. (pow_test): Run double only test also for long double. * math/test-ldouble.c (TEST_LDOUBLE): Define. * math/test-ildoubl.c (TEST_LDOUBLE): Likewise.
Diffstat (limited to 'math')
-rw-r--r--math/libm-test.inc8
-rw-r--r--math/test-ildoubl.c3
-rw-r--r--math/test-ldouble.c3
3 files changed, 10 insertions, 4 deletions
diff --git a/math/libm-test.inc b/math/libm-test.inc
index 0a50760..be6b1b6 100644
--- a/math/libm-test.inc
+++ b/math/libm-test.inc
@@ -2372,7 +2372,11 @@ exp_test (void)
TEST_f_f (exp, 2, M_E2l);
TEST_f_f (exp, 3, M_E3l);
TEST_f_f (exp, 0.7L, 2.0137527074704765216L);
-
+ TEST_f_f (exp, 50.0L, 5184705528587072464087.45332293348538L);
+#ifdef TEST_LDOUBLE
+ /* The result can only be represented in long double. */
+ TEST_f_f (exp, 1000.0L, 0.197007111401704699388887935224332313e435L);
+#endif
END (exp);
}
@@ -3560,7 +3564,7 @@ pow_test (void)
TEST_ff_f (pow, 0.7L, 1.2L, 0.65180494056638638188L);
-#ifdef TEST_DOUBLE
+#if defined TEST_DOUBLE || defined TEST_LDOUBLE
TEST_ff_f (pow, -7.49321e+133, -9.80818e+16, 0);
#endif
diff --git a/math/test-ildoubl.c b/math/test-ildoubl.c
index 4d0780e..d89512d 100644
--- a/math/test-ildoubl.c
+++ b/math/test-ildoubl.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1997, 1999 Free Software Foundation, Inc.
+/* Copyright (C) 1997, 1999, 2001 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Andreas Jaeger <aj@suse.de>, 1997.
@@ -27,6 +27,7 @@
#define PRINTF_XEXPR "La"
#define PRINTF_NEXPR "Lf"
#define TEST_INLINE
+#define TEST_LDOUBLE 1
#ifdef __NO_MATH_INLINES
# undef __NO_MATH_INLINES
diff --git a/math/test-ldouble.c b/math/test-ldouble.c
index 8401f2d..4776450 100644
--- a/math/test-ldouble.c
+++ b/math/test-ldouble.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1997, 1999 Free Software Foundation, Inc.
+/* Copyright (C) 1997, 1999, 2001 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Andreas Jaeger <aj@suse.de>, 1997.
@@ -25,6 +25,7 @@
#define PRINTF_EXPR "Le"
#define PRINTF_XEXPR "La"
#define PRINTF_NEXPR "Lf"
+#define TEST_LDOUBLE 1
#ifndef __NO_MATH_INLINES
# define __NO_MATH_INLINES