summaryrefslogtreecommitdiff
path: root/tests/tsi_op.c
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2017-05-17 06:27:14 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2017-05-17 06:27:14 +0000
commit0cee9ecc8fa3035b722c19dfb19123f0d0c3f138 (patch)
tree69336db32a542f5a33a87c028cbb81fcea2064c3 /tests/tsi_op.c
parent93130ae286fc4a2fb064935ffbdd5020b9e66b09 (diff)
downloadmpfr-0cee9ecc8fa3035b722c19dfb19123f0d0c3f138.tar.gz
[tests/*.c] Renamed the remaining macros whose names are reserved
by ISO C when <errno.h> is included. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@11483 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/tsi_op.c')
-rw-r--r--tests/tsi_op.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/tsi_op.c b/tests/tsi_op.c
index 88f1432f0..824178d54 100644
--- a/tests/tsi_op.c
+++ b/tests/tsi_op.c
@@ -27,7 +27,7 @@ http://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc.,
tgeneric_ui.c should probably be replaced by tgeneric.c,
with some changes, since tgeneric.c does more checks. */
-#define ERROR1(s,i,z,exp) \
+#define PRINT_ERROR1(s,i,z,exp) \
do \
{ \
printf ("Error for " s " and i=%d\n", i); \
@@ -117,28 +117,28 @@ main (int argc, char *argv[])
y = tab[i].op2;
mpfr_add_si (z, x, y, MPFR_RNDZ);
if (mpfr_cmp_str (z, tab[i].res_add, 16, MPFR_RNDN))
- ERROR1("add_si", i, z, tab[i].res_add);
+ PRINT_ERROR1 ("add_si", i, z, tab[i].res_add);
mpfr_sub_si (z, x, y, MPFR_RNDZ);
if (mpfr_cmp_str (z, tab[i].res_sub, 16, MPFR_RNDN))
- ERROR1("sub_si", i, z, tab[i].res_sub);
+ PRINT_ERROR1 ("sub_si", i, z, tab[i].res_sub);
mpfr_si_sub (z, y, x, MPFR_RNDZ);
mpfr_neg (z, z, MPFR_RNDZ);
if (mpfr_cmp_str (z, tab[i].res_sub, 16, MPFR_RNDN))
- ERROR1("si_sub", i, z, tab[i].res_sub);
+ PRINT_ERROR1 ("si_sub", i, z, tab[i].res_sub);
mpfr_mul_si (z, x, y, MPFR_RNDZ);
if (mpfr_cmp_str (z, tab[i].res_mul, 16, MPFR_RNDN))
- ERROR1("mul_si", i, z, tab[i].res_mul);
+ PRINT_ERROR1 ("mul_si", i, z, tab[i].res_mul);
mpfr_div_si (z, x, y, MPFR_RNDZ);
if (mpfr_cmp_str (z, tab[i].res_div, 16, MPFR_RNDN))
- ERROR1("div_si", i, z, tab[i].res_div);
+ PRINT_ERROR1 ("div_si", i, z, tab[i].res_div);
}
mpfr_set_str1 (x, "1");
mpfr_si_div (z, 1024, x, MPFR_RNDN);
if (mpfr_cmp_str1 (z, "1024"))
- ERROR1("si_div", i, z, "1024");
+ PRINT_ERROR1 ("si_div", i, z, "1024");
mpfr_si_div (z, -1024, x, MPFR_RNDN);
if (mpfr_cmp_str1 (z, "-1024"))
- ERROR1("si_div", i, z, "-1024");
+ PRINT_ERROR1 ("si_div", i, z, "-1024");
mpfr_clears (x, z, (mpfr_ptr) 0);