1 /*
2  * Copyright (C) by Argonne National Laboratory
3  *     See COPYRIGHT in top-level directory
4  */
5 
6 #include "mpioimpl.h"
7 
8 #ifndef HAVE_MPI_TYPE_SIZE_X
MPI_Type_size_x(MPI_Datatype datatype,MPI_Count * size)9 int MPI_Type_size_x(MPI_Datatype datatype, MPI_Count * size)
10 {
11     int size_int, ret;
12     ret = MPI_Type_size(datatype, &size_int);
13     *size = size_int;
14     return ret;
15 }
16 #endif
17 
18 #ifndef HAVE_MPI_STATUS_SET_ELEMENTS_X
MPI_Status_set_elements_x(MPI_Status * status,MPI_Datatype datatype,MPI_Count count)19 int MPI_Status_set_elements_x(MPI_Status * status, MPI_Datatype datatype, MPI_Count count)
20 {
21     int count_int = (int) count;
22     return MPI_Status_set_elements(status, datatype, count_int);
23 }
24 #endif
25