summaryrefslogtreecommitdiff
path: root/tests/tset_sj.c
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2005-08-18 17:03:17 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2005-08-18 17:03:17 +0000
commitd8782b82c961338b15ef888f0bc152566644a964 (patch)
tree6972f3706c8251eb2b814fb636519519b73bb1f5 /tests/tset_sj.c
parentbab5aab404897a12fe1c87734ebf2aa270b9b73b (diff)
downloadmpfr-d8782b82c961338b15ef888f0bc152566644a964.tar.gz
Removed trailing spaces (better for future patches, as such spaces
are sometimes stripped). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3726 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/tset_sj.c')
-rw-r--r--tests/tset_sj.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/tset_sj.c b/tests/tset_sj.c
index 621441704..494178598 100644
--- a/tests/tset_sj.c
+++ b/tests/tset_sj.c
@@ -1,4 +1,4 @@
-/* Test file for
+/* Test file for
mpfr_set_sj, mpfr_set_uj, mpfr_set_sj_2exp and mpfr_set_uj_2exp.
Copyright 2004 Free Software Foundation, Inc.
@@ -50,7 +50,7 @@ int main() { return 0; }
#define ERROR(str) {printf("Error for "str"\n"); exit(1);}
-static int
+static int
inexact_sign (int x)
{
return (x < 0) ? -1 : (x > 0);
@@ -78,7 +78,7 @@ check_set_uj (mp_prec_t pmin, mp_prec_t pmax, int N)
inex2 = mpfr_set_ui (y, limb, GMP_RNDN);
if (mpfr_cmp (x, y))
{
- printf ("ERROR for mpfr_set_uj and j=%lu and p=%lu\n",
+ printf ("ERROR for mpfr_set_uj and j=%lu and p=%lu\n",
(unsigned long) limb, p);
printf ("X="); mpfr_dump (x);
printf ("Y="); mpfr_dump (y);
@@ -88,7 +88,7 @@ check_set_uj (mp_prec_t pmin, mp_prec_t pmax, int N)
{
printf ("ERROR for inexact(set_uj): j=%lu p=%lu\n"
"Inexact1= %d Inexact2= %d\n",
- (unsigned long) limb, p, inex1, inex2);
+ (unsigned long) limb, p, inex1, inex2);
exit (1);
}
}
@@ -116,7 +116,7 @@ check_set_uj_2exp (void)
int inex;
mpfr_init2 (x, sizeof(uintmax_t)*CHAR_BIT);
-
+
inex = mpfr_set_uj_2exp (x, 1, 0, GMP_RNDN);
if (inex || mpfr_cmp_ui(x, 1))
ERROR("(1U,0)");
@@ -135,7 +135,7 @@ check_set_uj_2exp (void)
if (inex || !mpfr_powerof2_raw (x)
|| MPFR_EXP (x) != (sizeof(uintmax_t)*CHAR_BIT+1) )
ERROR("(UINTMAX_MAX)");
-
+
inex = mpfr_set_uj_2exp (x, UINTMAX_MAX, MPFR_EMAX_MAX-10, GMP_RNDN);
if (inex == 0 || !mpfr_inf_p (x))
ERROR ("Overflow");
@@ -154,13 +154,13 @@ check_set_sj ()
int inex;
mpfr_init2 (x, sizeof(intmax_t)*CHAR_BIT-1);
-
+
inex = mpfr_set_sj (x, -INTMAX_MAX, GMP_RNDN);
inex |= mpfr_add_si (x, x, -1, GMP_RNDN);
if (inex || mpfr_sgn (x) >=0 || !mpfr_powerof2_raw (x)
|| MPFR_EXP (x) != (sizeof(intmax_t)*CHAR_BIT) )
ERROR("set_sj (-INTMAX_MAX)");
-
+
inex = mpfr_set_sj (x, 1742, GMP_RNDN);
if (inex || mpfr_cmp_ui (x, 1742))
ERROR ("set_sj (1742)");