Commit cb575d73 authored by Thomas Jahns's avatar Thomas Jahns 🤸
Browse files

Minor beautification.

parent ec4e64ee
...@@ -259,8 +259,10 @@ xt_mpi_generate_datatype_block(const int *displacements, ...@@ -259,8 +259,10 @@ xt_mpi_generate_datatype_block(const int *displacements,
#endif #endif
} }
MPI_Datatype xt_mpi_generate_datatype(int const * displacements, int count, MPI_Datatype
MPI_Datatype old_type, MPI_Comm comm) { xt_mpi_generate_datatype(int const * displacements, int count,
MPI_Datatype old_type, MPI_Comm comm)
{
if (count <= 0) if (count <= 0)
return MPI_DATATYPE_NULL; return MPI_DATATYPE_NULL;
...@@ -892,8 +894,7 @@ xt_mpi_test_some(int *restrict num_req, ...@@ -892,8 +894,7 @@ xt_mpi_test_some(int *restrict num_req,
MPI_STATUSES_IGNORE), comm); MPI_STATUSES_IGNORE), comm);
if (done_count != MPI_UNDEFINED) { if (done_count != MPI_UNDEFINED) {
if (num_req_ > (size_t)done_count) { if (num_req_ > (size_t)done_count) {
size_t j = num_req_; for (size_t i = 0, j = num_req_;
for (size_t i = 0;
i < (size_t)done_count && j >= num_req_ - (size_t)done_count; i < (size_t)done_count && j >= num_req_ - (size_t)done_count;
++i) ++i)
if (ops_completed[i] < (int)num_req_ - done_count) { if (ops_completed[i] < (int)num_req_ - done_count) {
......
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