summaryrefslogtreecommitdiff
path: root/tests/tatan.c
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2021-01-31 17:44:34 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2021-01-31 17:44:34 +0000
commit97d6c8229f55a8e860a12793db7a3c3704e08205 (patch)
tree0eff6d53f84c293bf7f0111d5ca7f2e7246163c3 /tests/tatan.c
parent8ddb7802f9e5d601cb247db6584344a4a705b989 (diff)
downloadmpfr-97d6c8229f55a8e860a12793db7a3c3704e08205.tar.gz
[tests] Use RND_LOOP.
Changes with: perl -pi -e 's/^( *)for *\((\w+) *= *0 *; *\2 *< *MPFR_RND_MAX *; *\2 *\+\+\) *$/\1RND_LOOP (\2)/' *.c git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14292 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/tatan.c')
-rw-r--r--tests/tatan.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/tatan.c b/tests/tatan.c
index 55c672704..ffe47bf0b 100644
--- a/tests/tatan.c
+++ b/tests/tatan.c
@@ -50,7 +50,7 @@ special (void)
}
/* atan(+Inf) = Pi/2 */
- for (r = 0; r < MPFR_RND_MAX ; r++)
+ RND_LOOP (r)
{
mpfr_set_inf (x, 1);
mpfr_atan (y, x, (mpfr_rnd_t) r);
@@ -65,7 +65,7 @@ special (void)
}
/* atan(-Inf) = - Pi/2 */
- for (r = 0; r < MPFR_RND_MAX ; r++)
+ RND_LOOP (r)
{
mpfr_set_inf (x, -1);
mpfr_atan (y, x, (mpfr_rnd_t) r);