+int PMPI_Type_get_extent_x(MPI_Datatype datatype, MPI_Count * lb, MPI_Count * extent)
+{
+ MPI_Aint tmplb, tmpext;
+ int ret = PMPI_Type_get_extent(datatype, &tmplb, &tmpext);
+ if(ret == MPI_SUCCESS){
+ *lb = static_cast<MPI_Count>(tmplb);
+ *extent = static_cast<MPI_Count>(tmpext);
+ }
+ return ret;
+}
+