mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
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.
This commit is contained in:
@ -1,5 +1,13 @@
|
|||||||
2001-05-07 Andreas Jaeger <aj@suse.de>
|
2001-05-07 Andreas Jaeger <aj@suse.de>
|
||||||
|
|
||||||
|
* 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.
|
||||||
|
|
||||||
* sysdeps/generic/bits/confname.h: Remove extra comma at end of
|
* sysdeps/generic/bits/confname.h: Remove extra comma at end of
|
||||||
enumeration.
|
enumeration.
|
||||||
Closes PR libc/2240.
|
Closes PR libc/2240.
|
||||||
|
@ -2372,7 +2372,11 @@ exp_test (void)
|
|||||||
TEST_f_f (exp, 2, M_E2l);
|
TEST_f_f (exp, 2, M_E2l);
|
||||||
TEST_f_f (exp, 3, M_E3l);
|
TEST_f_f (exp, 3, M_E3l);
|
||||||
TEST_f_f (exp, 0.7L, 2.0137527074704765216L);
|
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);
|
END (exp);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -3560,7 +3564,7 @@ pow_test (void)
|
|||||||
|
|
||||||
TEST_ff_f (pow, 0.7L, 1.2L, 0.65180494056638638188L);
|
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);
|
TEST_ff_f (pow, -7.49321e+133, -9.80818e+16, 0);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -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.
|
This file is part of the GNU C Library.
|
||||||
Contributed by Andreas Jaeger <aj@suse.de>, 1997.
|
Contributed by Andreas Jaeger <aj@suse.de>, 1997.
|
||||||
|
|
||||||
@ -27,6 +27,7 @@
|
|||||||
#define PRINTF_XEXPR "La"
|
#define PRINTF_XEXPR "La"
|
||||||
#define PRINTF_NEXPR "Lf"
|
#define PRINTF_NEXPR "Lf"
|
||||||
#define TEST_INLINE
|
#define TEST_INLINE
|
||||||
|
#define TEST_LDOUBLE 1
|
||||||
|
|
||||||
#ifdef __NO_MATH_INLINES
|
#ifdef __NO_MATH_INLINES
|
||||||
# undef __NO_MATH_INLINES
|
# undef __NO_MATH_INLINES
|
||||||
|
@ -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.
|
This file is part of the GNU C Library.
|
||||||
Contributed by Andreas Jaeger <aj@suse.de>, 1997.
|
Contributed by Andreas Jaeger <aj@suse.de>, 1997.
|
||||||
|
|
||||||
@ -25,6 +25,7 @@
|
|||||||
#define PRINTF_EXPR "Le"
|
#define PRINTF_EXPR "Le"
|
||||||
#define PRINTF_XEXPR "La"
|
#define PRINTF_XEXPR "La"
|
||||||
#define PRINTF_NEXPR "Lf"
|
#define PRINTF_NEXPR "Lf"
|
||||||
|
#define TEST_LDOUBLE 1
|
||||||
|
|
||||||
#ifndef __NO_MATH_INLINES
|
#ifndef __NO_MATH_INLINES
|
||||||
# define __NO_MATH_INLINES
|
# define __NO_MATH_INLINES
|
||||||
|
@ -561,6 +561,12 @@ ildouble: 36
|
|||||||
Test "exp (0.7) == 2.0137527074704765216":
|
Test "exp (0.7) == 2.0137527074704765216":
|
||||||
ildouble: 412
|
ildouble: 412
|
||||||
ldouble: 412
|
ldouble: 412
|
||||||
|
Test "exp (50.0) == 5184705528587072464087.45332293348538":
|
||||||
|
ildouble: 16
|
||||||
|
ldouble: 16
|
||||||
|
Test "exp (1000.0) == 0.197007111401704699388887935224332313e435":
|
||||||
|
ildouble: 754
|
||||||
|
ldouble: 754
|
||||||
|
|
||||||
# exp10
|
# exp10
|
||||||
Test "exp10 (-1) == 0.1":
|
Test "exp10 (-1) == 0.1":
|
||||||
@ -1445,8 +1451,8 @@ ldouble: 36
|
|||||||
ildouble: 36
|
ildouble: 36
|
||||||
|
|
||||||
Function: "exp":
|
Function: "exp":
|
||||||
ildouble: 412
|
ildouble: 754
|
||||||
ldouble: 412
|
ldouble: 754
|
||||||
|
|
||||||
Function: "exp10":
|
Function: "exp10":
|
||||||
double: 1
|
double: 1
|
||||||
|
Reference in New Issue
Block a user