From ad1ca6eaa8df8c8d05516938aace782d8e8480b9 Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Thu, 28 Mar 2013 22:20:30 +0100 Subject: [PATCH] Remove extraneous parentheses, and silent clang. --- src/smpi/colls/star-reduction.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/smpi/colls/star-reduction.c b/src/smpi/colls/star-reduction.c index 40fb96e47d..14281f57c1 100644 --- a/src/smpi/colls/star-reduction.c +++ b/src/smpi/colls/star-reduction.c @@ -126,7 +126,7 @@ static void star_generic_reduction(MPI_Op op, void *src, void *target, int *coun } } } - else if ((*dtype == MPI_SHORT) ) { + else if (*dtype == MPI_SHORT) { for (i=0;i<*count;i++) { if (((short *)src)[i] > ((short *)target)[i]) { ((short *)target)[i] = ((short *)src)[i]; @@ -141,14 +141,14 @@ static void star_generic_reduction(MPI_Op op, void *src, void *target, int *coun } } - else if ((*dtype == MPI_DOUBLE)) { + else if (*dtype == MPI_DOUBLE) { for (i=0;i<*count;i++) { if (((double *)src)[i] > ((double *)target)[i]) { ((double *)target)[i] = ((double *)src)[i]; } } } - else if ((*dtype == MPI_FLOAT)) { + else if (*dtype == MPI_FLOAT) { for (i=0;i<*count;i++) { if (((float *)src)[i] > ((float *)target)[i]) { ((float *)target)[i] = ((float *)src)[i]; @@ -186,7 +186,7 @@ static void star_generic_reduction(MPI_Op op, void *src, void *target, int *coun } } } - else if ((*dtype == MPI_SHORT) ) { + else if (*dtype == MPI_SHORT) { for (i=0;i<*count;i++) { if (((short *)src)[i] < ((short *)target)[i]) { ((short *)target)[i] = ((short *)src)[i]; @@ -201,14 +201,14 @@ static void star_generic_reduction(MPI_Op op, void *src, void *target, int *coun } } - else if ((*dtype == MPI_DOUBLE)) { + else if (*dtype == MPI_DOUBLE) { for (i=0;i<*count;i++) { if (((double *)src)[i] < ((double *)target)[i]) { ((double *)target)[i] = ((double *)src)[i]; } } } - else if ((*dtype == MPI_FLOAT)) { + else if (*dtype == MPI_FLOAT) { for (i=0;i<*count;i++) { if (((float *)src)[i] < ((float *)target)[i]) { ((float *)target)[i] = ((float *)src)[i]; @@ -241,7 +241,7 @@ static void star_generic_reduction(MPI_Op op, void *src, void *target, int *coun ((unsigned int *)target)[i] += ((unsigned int *)src)[i]; } } - else if ((*dtype == MPI_SHORT) ) { + else if (*dtype == MPI_SHORT) { for (i=0;i<*count;i++) { ((short *)target)[i] += ((short *)src)[i]; } @@ -252,12 +252,12 @@ static void star_generic_reduction(MPI_Op op, void *src, void *target, int *coun } } - else if ((*dtype == MPI_DOUBLE)) { + else if (*dtype == MPI_DOUBLE) { for (i=0;i<*count;i++) { ((double *)target)[i] += ((double *)src)[i]; } } - else if ((*dtype == MPI_FLOAT)) { + else if (*dtype == MPI_FLOAT) { for (i=0;i<*count;i++) { ((float *)target)[i] += ((float *)src)[i]; } @@ -280,7 +280,7 @@ static void star_generic_reduction(MPI_Op op, void *src, void *target, int *coun ((unsigned int *)target)[i] *= ((unsigned int *)src)[i]; } } - else if ((*dtype == MPI_SHORT) ) { + else if (*dtype == MPI_SHORT) { for (i=0;i<*count;i++) { ((short *)target)[i] *= ((short *)src)[i]; } @@ -291,12 +291,12 @@ static void star_generic_reduction(MPI_Op op, void *src, void *target, int *coun } } - else if ((*dtype == MPI_DOUBLE)) { + else if (*dtype == MPI_DOUBLE) { for (i=0;i<*count;i++) { ((double *)target)[i] *= ((double *)src)[i]; } } - else if ((*dtype == MPI_FLOAT)) { + else if (*dtype == MPI_FLOAT) { for (i=0;i<*count;i++) { ((float *)target)[i] *= ((float *)src)[i]; } -- 2.30.2