diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2015-05-29 10:19:18 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2015-05-29 10:19:18 +0000 |
commit | 1dda6f3270c62d40dc6faff877c08ab935d2a138 (patch) | |
tree | 886bbee077f0697a892aa23a7814f1c6f087d4ce /tests/tsin_cos.c | |
parent | b8b853306f903fe8e2806a3ed29fb7fa53b31f34 (diff) | |
download | mpfr-1dda6f3270c62d40dc6faff877c08ab935d2a138.tar.gz |
[tests] Added always_scale argument (boolean) to tests_default_random()
so that when it is true, scaling is always performed on random numbers
generated by mpfr_urandomb(), instead of preferring numbers of the order
of magnitude of 1 for half outputs. This will be useful for mpfr_rint_*
tests.
For tgeneric.c, the value of this argument is controlled by a new macro
TEST_RANDOM_ALWAYS_SCALE (0 by default, which corresponds to the current
behavior). For the other tests that call tests_default_random(), the
argument is set to 0, so that the behavior remains the same.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9471 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/tsin_cos.c')
-rw-r--r-- | tests/tsin_cos.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/tsin_cos.c b/tests/tsin_cos.c index c3fcb5d83..789c40da6 100644 --- a/tests/tsin_cos.c +++ b/tests/tsin_cos.c @@ -585,7 +585,7 @@ consistency (void) } else { - tests_default_random (x, 256, -5, 50); + tests_default_random (x, 256, -5, 50, 0); rnd = RND_RAND (); flags_before = (randlimb () & 1) ? (unsigned int) (MPFR_FLAGS_ALL ^ MPFR_FLAGS_ERANGE) : |