From 697849c69472e9ec775b1cd69b1d86ff77f57790 Mon Sep 17 00:00:00 2001 From: George Bosilca Date: Mon, 6 Feb 2006 17:54:29 +0000 Subject: [PATCH] Add a function to check if the data-type is predefined or not (ompi_ddt_is_predefined). This commit was SVN r8902. --- ompi/datatype/datatype.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ompi/datatype/datatype.h b/ompi/datatype/datatype.h index b6493f855d..d15aa7e997 100644 --- a/ompi/datatype/datatype.h +++ b/ompi/datatype/datatype.h @@ -134,6 +134,8 @@ static inline int32_t ompi_ddt_is_acceptable_for_one_sided( const ompi_datatype_ { return ((type->flags & DT_FLAG_ONE_SIDED) == DT_FLAG_ONE_SIDED); } static inline int32_t ompi_ddt_is_valid( const ompi_datatype_t* type ) { return !((type->flags & DT_FLAG_UNAVAILABLE) == DT_FLAG_UNAVAILABLE); } +static inline int32_t ompi_ddt_is_predefined( const ompi_datatype_t* type ) +{ return (type->flags & DT_FLAG_PREDEFINED); } void ompi_ddt_dump( const ompi_datatype_t* pData ); /* data creation functions */