Commit be2087f2 authored by Vincent Lefevre's avatar Vincent Lefevre
Browse files

Corrected style (spurious space before comma).

parent 872651a5
......@@ -272,7 +272,7 @@ test4 (int (*testfunc)(mpfr_ptr, mpfr_srcptr, mpfr_srcptr, mpfr_srcptr,
}
/* foo (a, a, a, a) */
testfunc (ref, op1, op1, op1 ,rnd);
testfunc (ref, op1, op1, op1, rnd);
mpfr_set (res, op1, rnd);
testfunc (res, res, res, res, rnd);
if (mpfr_compare (res, ref))
......
......@@ -327,7 +327,7 @@ check_special (void)
mpfr_set_ui (x, 1, MPFR_RNDN);
mpfr_set_ui (y, 1, MPFR_RNDN);
mpfr_agm (m, x, y, MPFR_RNDN);
MPFR_ASSERTN (mpfr_cmp_ui (m ,1) == 0);
MPFR_ASSERTN (mpfr_cmp_ui (m, 1) == 0);
/* agm(-1,-2) is NaN */
mpfr_set_si (x, -1, MPFR_RNDN);
......
......@@ -87,7 +87,7 @@ check_nans (void)
/* -inf */
mpfr_set_inf (x, -1);
mpfr_modf (xi ,xf, x, MPFR_RNDN);
mpfr_modf (xi, xf, x, MPFR_RNDN);
MPFR_ASSERTN (mpfr_inf_p (xi));
MPFR_ASSERTN (mpfr_sgn (xi) < 0);
MPFR_ASSERTN (mpfr_zero_p (xf));
......
......@@ -94,7 +94,7 @@ main (void)
mpf_urandomb (z, RANDS, z->_mp_prec);
mpfr_set_prec (u, ((pr / GMP_NUMB_BITS + 1) * GMP_NUMB_BITS));
mpfr_set_f (u, z, MPFR_RNDN);
if (mpfr_cmp_f (u , z) != 0)
if (mpfr_cmp_f (u, z) != 0)
{
printf ("Error in mpfr_set_f:\n");
printf ("mpf (precision=%lu)=", pr);
......
......@@ -373,7 +373,7 @@ main (int argc, char *argv[])
}
/* in this example, I think there was a pb in the old function :
result of mpfr_set_str_old for the same number , but with more
result of mpfr_set_str_old for the same number, but with more
precision is: 1.111111111110000000000000000111111111111111111111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100111000100001100000010101100111010e184
this result is the same as mpfr_set_str */
mpfr_set_prec (x, 64);
......
......@@ -692,8 +692,8 @@ hexadecimal (void)
check_sprintf ("0x0000f.edcba987654321p+24", "%026RDa", x);
check_sprintf ("0x0000000000000000000fp+24", "%026.0RDa", x);
/* sign or space, decimal point, left justified */
check_sprintf (" 0XF.EP+24 " , "%- #11.1RDA", x);
check_sprintf (" 0XF.P+24 " , "%- #11.0RDA", x);
check_sprintf (" 0XF.EP+24 ", "%- #11.1RDA", x);
check_sprintf (" 0XF.P+24 ", "%- #11.0RDA", x);
mpfr_mul_si (x, x, -1, MPFR_RNDD);
mpfr_mul_si (z, z, -1, MPFR_RNDD);
......
......@@ -179,7 +179,7 @@ test2 (void)
{
mpfr_set_str1 (x, val[i]);
mpfr_zeta(y, x, MPFR_RNDZ);
if (mpfr_cmp_str (y, val[i+1] , 2, MPFR_RNDZ))
if (mpfr_cmp_str (y, val[i+1], 2, MPFR_RNDZ))
{
printf("Wrong result for zeta(%s=", val[i]);
mpfr_out_str (stdout, 2, 0, x, MPFR_RNDN);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment