aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/arith.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/fortran/arith.c')
-rw-r--r--gcc/fortran/arith.c38
1 files changed, 19 insertions, 19 deletions
diff --git a/gcc/fortran/arith.c b/gcc/fortran/arith.c
index 36b8cc2..280fc9a 100644
--- a/gcc/fortran/arith.c
+++ b/gcc/fortran/arith.c
@@ -92,7 +92,7 @@ arctangent2 (mpfr_t y, mpfr_t x, mpfr_t result)
gfc_set_model (y);
mpfr_init (t);
- i = mpfr_sgn(x);
+ i = mpfr_sgn (x);
if (i > 0)
{
@@ -206,12 +206,12 @@ gfc_arith_init_1 (void)
Standard Fortran requires integers to be symmetrical, i.e.
every negative integer must have a representable positive
absolute value, and vice versa. */
-
+
mpz_init (int_info->pedantic_min_int);
mpz_neg (int_info->pedantic_min_int, int_info->huge);
mpz_init (int_info->min_int);
- mpz_sub_ui(int_info->min_int, int_info->pedantic_min_int, 1);
+ mpz_sub_ui (int_info->min_int, int_info->pedantic_min_int, 1);
mpz_init (int_info->max_int);
mpz_add (int_info->max_int, int_info->huge, int_info->huge);
@@ -330,7 +330,7 @@ gfc_arith_done_1 (void)
/* Given an integer and a kind, make sure that the integer lies within
- the range of the kind. Returns ARITH_OK, ARITH_ASYMMETRIC or
+ the range of the kind. Returns ARITH_OK, ARITH_ASYMMETRIC or
ARITH_OVERFLOW. */
static arith
@@ -396,7 +396,7 @@ done:
/* Function to return a constant expression node of a given type and
kind. */
-gfc_expr *
+gfc_expr *
gfc_constant_result (bt type, int kind, locus * where)
{
gfc_expr *result;
@@ -549,7 +549,7 @@ gfc_range_check (gfc_expr * e)
default:
gfc_internal_error ("gfc_range_check(): Bad type");
}
-
+
return rc;
}
@@ -1089,7 +1089,7 @@ gfc_arith_power (gfc_expr * op1, gfc_expr * op2, gfc_expr ** resultp)
gfc_free_expr (result);
else
*resultp = result;
-
+
return rc;
}
@@ -1687,9 +1687,9 @@ static gfc_expr *
eval_type_intrinsic0 (gfc_intrinsic_op operator, gfc_expr *op)
{
if (op == NULL)
- gfc_internal_error("eval_type_intrinsic0(): op NULL");
+ gfc_internal_error ("eval_type_intrinsic0(): op NULL");
- switch(operator)
+ switch (operator)
{
case INTRINSIC_GE:
case INTRINSIC_LT:
@@ -1755,13 +1755,13 @@ eval_intrinsic_f2 (gfc_intrinsic_op operator,
if (op2 == NULL)
{
if (gfc_zero_size_array (op1))
- return eval_type_intrinsic0(operator, op1);
+ return eval_type_intrinsic0 (operator, op1);
}
else
{
result = reduce_binary0 (op1, op2);
if (result != NULL)
- return eval_type_intrinsic0(operator, result);
+ return eval_type_intrinsic0 (operator, result);
}
f.f2 = eval;
@@ -2093,7 +2093,7 @@ gfc_real2real (gfc_expr * src, int kind)
{
if (gfc_option.warn_underflow)
gfc_warning ("%s at %L", gfc_arith_error (rc), &src->where);
- mpfr_set_ui(result->value.real, 0, GFC_RND_MODE);
+ mpfr_set_ui (result->value.real, 0, GFC_RND_MODE);
}
else if (rc != ARITH_OK)
{
@@ -2125,7 +2125,7 @@ gfc_real2complex (gfc_expr * src, int kind)
{
if (gfc_option.warn_underflow)
gfc_warning ("%s at %L", gfc_arith_error (rc), &src->where);
- mpfr_set_ui(result->value.complex.r, 0, GFC_RND_MODE);
+ mpfr_set_ui (result->value.complex.r, 0, GFC_RND_MODE);
}
else if (rc != ARITH_OK)
{
@@ -2148,7 +2148,7 @@ gfc_complex2int (gfc_expr * src, int kind)
result = gfc_constant_result (BT_INTEGER, kind, &src->where);
- gfc_mpfr_to_mpz(result->value.integer, src->value.complex.r);
+ gfc_mpfr_to_mpz (result->value.integer, src->value.complex.r);
if ((rc = gfc_check_integer_range (result->value.integer, kind))
!= ARITH_OK)
@@ -2176,11 +2176,11 @@ gfc_complex2real (gfc_expr * src, int kind)
rc = gfc_check_real_range (result->value.real, kind);
- if (rc == ARITH_UNDERFLOW)
+ if (rc == ARITH_UNDERFLOW)
{
if (gfc_option.warn_underflow)
gfc_warning ("%s at %L", gfc_arith_error (rc), &src->where);
- mpfr_set_ui(result->value.real, 0, GFC_RND_MODE);
+ mpfr_set_ui (result->value.real, 0, GFC_RND_MODE);
}
if (rc != ARITH_OK)
{
@@ -2212,7 +2212,7 @@ gfc_complex2complex (gfc_expr * src, int kind)
{
if (gfc_option.warn_underflow)
gfc_warning ("%s at %L", gfc_arith_error (rc), &src->where);
- mpfr_set_ui(result->value.complex.r, 0, GFC_RND_MODE);
+ mpfr_set_ui (result->value.complex.r, 0, GFC_RND_MODE);
}
else if (rc != ARITH_OK)
{
@@ -2220,14 +2220,14 @@ gfc_complex2complex (gfc_expr * src, int kind)
gfc_free_expr (result);
return NULL;
}
-
+
rc = gfc_check_real_range (result->value.complex.i, kind);
if (rc == ARITH_UNDERFLOW)
{
if (gfc_option.warn_underflow)
gfc_warning ("%s at %L", gfc_arith_error (rc), &src->where);
- mpfr_set_ui(result->value.complex.i, 0, GFC_RND_MODE);
+ mpfr_set_ui (result->value.complex.i, 0, GFC_RND_MODE);
}
else if (rc != ARITH_OK)
{