mirror of git://gcc.gnu.org/git/gcc.git
20_riemann_zeta/check_value_neg.c (MAX_ITERATIONS): Add limit when target is simulator.
2007-10-12 Jesper Nilsson <jesper.nilsson@axis.com>
* testsuite/tr1/5_numerical_facilities/special_functions/
20_riemann_zeta/check_value_neg.c (MAX_ITERATIONS): Add limit
when target is simulator.
* testsuite/tr1/5_numerical_facilities/special_functions/
20_riemann_zeta/check_value_pos.c (MAX_ITERATIONS): Likewise.
From-SVN: r129258
This commit is contained in:
parent
f42054423c
commit
1de1af77d6
|
|
@ -1,3 +1,11 @@
|
||||||
|
2007-10-12 Jesper Nilsson <jesper.nilsson@axis.com>
|
||||||
|
|
||||||
|
* testsuite/tr1/5_numerical_facilities/special_functions/
|
||||||
|
20_riemann_zeta/check_value_neg.c (MAX_ITERATIONS): Add limit
|
||||||
|
when target is simulator.
|
||||||
|
* testsuite/tr1/5_numerical_facilities/special_functions/
|
||||||
|
20_riemann_zeta/check_value_pos.c (MAX_ITERATIONS): Likewise.
|
||||||
|
|
||||||
2007-10-11 Roger Sayle <roger@eyesopen.com>
|
2007-10-11 Roger Sayle <roger@eyesopen.com>
|
||||||
|
|
||||||
* acinclude.m4 (GLIBCXX_CHECK_SYSTEM_ERROR): Add EOVERFLOW for Tru64.
|
* acinclude.m4 (GLIBCXX_CHECK_SYSTEM_ERROR): Add EOVERFLOW for Tru64.
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,12 @@
|
||||||
|
|
||||||
// riemann_zeta
|
// riemann_zeta
|
||||||
|
|
||||||
|
// This can take long on simulators, timing out the test.
|
||||||
|
// { dg-options "-DMAX_ITERATIONS=5" { target simulator } }
|
||||||
|
|
||||||
|
#ifndef MAX_ITERATIONS
|
||||||
|
#define MAX_ITERATIONS (sizeof(data001) / sizeof(testcase_riemann_zeta<double>))
|
||||||
|
#endif
|
||||||
|
|
||||||
// Compare against values generated by the GNU Scientific Library.
|
// Compare against values generated by the GNU Scientific Library.
|
||||||
// The GSL can be found on the web: http://www.gnu.org/software/gsl/
|
// The GSL can be found on the web: http://www.gnu.org/software/gsl/
|
||||||
|
|
@ -106,8 +112,7 @@ void test001()
|
||||||
const Tp eps = std::numeric_limits<Tp>::epsilon();
|
const Tp eps = std::numeric_limits<Tp>::epsilon();
|
||||||
Tp max_abs_diff = -Tp(1);
|
Tp max_abs_diff = -Tp(1);
|
||||||
Tp max_abs_frac = -Tp(1);
|
Tp max_abs_frac = -Tp(1);
|
||||||
unsigned int num_datum = sizeof(data001)
|
unsigned int num_datum = MAX_ITERATIONS;
|
||||||
/ sizeof(testcase_riemann_zeta<double>);
|
|
||||||
for (unsigned int i = 0; i < num_datum; ++i)
|
for (unsigned int i = 0; i < num_datum; ++i)
|
||||||
{
|
{
|
||||||
const Tp f = std::tr1::riemann_zeta(Tp(data001[i].x));
|
const Tp f = std::tr1::riemann_zeta(Tp(data001[i].x));
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,12 @@
|
||||||
|
|
||||||
// riemann_zeta
|
// riemann_zeta
|
||||||
|
|
||||||
|
// This can take long on simulators, timing out the test.
|
||||||
|
// { dg-options "-DMAX_ITERATIONS=5" { target simulator } }
|
||||||
|
|
||||||
|
#ifndef MAX_ITERATIONS
|
||||||
|
#define MAX_ITERATIONS (sizeof(data001) / sizeof(testcase_riemann_zeta<double>))
|
||||||
|
#endif
|
||||||
|
|
||||||
// Compare against values generated by the GNU Scientific Library.
|
// Compare against values generated by the GNU Scientific Library.
|
||||||
// The GSL can be found on the web: http://www.gnu.org/software/gsl/
|
// The GSL can be found on the web: http://www.gnu.org/software/gsl/
|
||||||
|
|
@ -196,8 +202,7 @@ void test001()
|
||||||
const Tp eps = std::numeric_limits<Tp>::epsilon();
|
const Tp eps = std::numeric_limits<Tp>::epsilon();
|
||||||
Tp max_abs_diff = -Tp(1);
|
Tp max_abs_diff = -Tp(1);
|
||||||
Tp max_abs_frac = -Tp(1);
|
Tp max_abs_frac = -Tp(1);
|
||||||
unsigned int num_datum = sizeof(data001)
|
unsigned int num_datum = MAX_ITERATIONS;
|
||||||
/ sizeof(testcase_riemann_zeta<double>);
|
|
||||||
for (unsigned int i = 0; i < num_datum; ++i)
|
for (unsigned int i = 0; i < num_datum; ++i)
|
||||||
{
|
{
|
||||||
const Tp f = std::tr1::riemann_zeta(Tp(data001[i].x));
|
const Tp f = std::tr1::riemann_zeta(Tp(data001[i].x));
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue