- First usage of the some of the attributes
This commit was SVN r13370.
Этот коммит содержится в:
родитель
2bda2f5d8c
Коммит
01ba38661d
@ -136,7 +136,7 @@ static inline int32_t ompi_ddt_is_committed( const ompi_datatype_t* type )
|
||||
{ return ((type->flags & DT_FLAG_COMMITED) == DT_FLAG_COMMITED); }
|
||||
static inline int32_t ompi_ddt_is_overlapped( const ompi_datatype_t* type )
|
||||
{ return ((type->flags & DT_FLAG_OVERLAP) == DT_FLAG_OVERLAP); }
|
||||
static inline int32_t ompi_ddt_is_acceptable_for_one_sided( const ompi_datatype_t* type )
|
||||
static inline int32_t ompi_ddt_is_acceptable_for_one_sided( const ompi_datatype_t* type __opal_attribute_unused__ )
|
||||
{ return true; }
|
||||
static inline int32_t ompi_ddt_is_valid( const ompi_datatype_t* type )
|
||||
{ return !((type->flags & DT_FLAG_UNAVAILABLE) == DT_FLAG_UNAVAILABLE); }
|
||||
|
@ -181,7 +181,7 @@ static inline uint16_t opal_swap_bytes2(uint16_t val)
|
||||
return r.bigval;
|
||||
}
|
||||
|
||||
static inline uint32_t opal_swap_bytes4(uint32_t val)
|
||||
static inline uint32_t opal_swap_bytes4(uint32_t val) __opal_attribute_const__
|
||||
{
|
||||
union { uint32_t bigval;
|
||||
uint8_t arrayval[4];
|
||||
@ -196,7 +196,7 @@ static inline uint32_t opal_swap_bytes4(uint32_t val)
|
||||
return r.bigval;
|
||||
}
|
||||
|
||||
static inline uint64_t opal_swap_bytes8(uint64_t val)
|
||||
static inline uint64_t opal_swap_bytes8(uint64_t val) __opal_attribute_const__
|
||||
{
|
||||
union { uint64_t bigval;
|
||||
uint8_t arrayval[8];
|
||||
@ -219,6 +219,6 @@ static inline uint64_t opal_swap_bytes8(uint64_t val)
|
||||
#define opal_swap_bytes2 htons
|
||||
#define opal_swap_bytes4 htonl
|
||||
#define opal_swap_bytes8 hton64
|
||||
#endif
|
||||
#endif /* WORDS_BIGENDIAN */
|
||||
|
||||
#endif
|
||||
#endif /* OPAL_TYPES_H */
|
||||
|
@ -341,7 +341,7 @@ struct opal_output_stream_t {
|
||||
* created, opal_output() will automatically create the file and
|
||||
* writing to it.
|
||||
*/
|
||||
OPAL_DECLSPEC void opal_output(int output_id, const char *format, ...);
|
||||
OPAL_DECLSPEC void opal_output(int output_id, const char *format, ...) __opal_attribute_format__(__printf__, 2, 3);
|
||||
|
||||
/**
|
||||
* Send output to a stream only if the passed verbosity level is
|
||||
@ -372,7 +372,7 @@ struct opal_output_stream_t {
|
||||
* @see opal_output_set_verbosity()
|
||||
*/
|
||||
OPAL_DECLSPEC void opal_output_verbose(int verbose_level, int output_id,
|
||||
const char *format, ...);
|
||||
const char *format, ...) __opal_attribute_format__(__printf__, 3, 4);
|
||||
|
||||
/**
|
||||
* Set the verbosity level for a stream.
|
||||
|
@ -5,7 +5,7 @@
|
||||
* Copyright (c) 2004-2005 The University of Tennessee and The University
|
||||
* of Tennessee Research Foundation. All rights
|
||||
* reserved.
|
||||
* Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
|
||||
* Copyright (c) 2004-2007 High Performance Computing Center Stuttgart,
|
||||
* University of Stuttgart. All rights reserved.
|
||||
* Copyright (c) 2004-2005 The Regents of the University of California.
|
||||
* All rights reserved.
|
||||
@ -54,7 +54,7 @@ extern "C" {
|
||||
*
|
||||
* THIS IS A PORTABILITY FEATURE: USE snprintf() in CODE.
|
||||
*/
|
||||
OPAL_DECLSPEC int opal_snprintf(char *str, size_t size, const char *fmt, ...);
|
||||
OPAL_DECLSPEC int opal_snprintf(char *str, size_t size, const char *fmt, ...) __opal_attribute_format__(__printf__, 3, 4);
|
||||
|
||||
|
||||
/**
|
||||
@ -79,7 +79,7 @@ OPAL_DECLSPEC int opal_snprintf(char *str, size_t size, const char *fmt, ...);
|
||||
*
|
||||
* THIS IS A PORTABILITY FEATURE: USE vsnprintf() in CODE.
|
||||
*/
|
||||
OPAL_DECLSPEC int opal_vsnprintf(char *str, size_t size, const char *fmt, va_list ap);
|
||||
OPAL_DECLSPEC int opal_vsnprintf(char *str, size_t size, const char *fmt, va_list ap) __opal_attribute_format__(__printf__, 3, 0);
|
||||
|
||||
/**
|
||||
* Allocates and writes to a string under the control of a format
|
||||
@ -100,7 +100,7 @@ OPAL_DECLSPEC int opal_vsnprintf(char *str, size_t size, const char *fmt, va_li
|
||||
*
|
||||
* THIS IS A PORTABILITY FEATURE: USE asprintf() in CODE.
|
||||
*/
|
||||
OPAL_DECLSPEC int opal_asprintf(char **ptr, const char *fmt, ...);
|
||||
OPAL_DECLSPEC int opal_asprintf(char **ptr, const char *fmt, ...) __opal_attribute_format__(__printf__, 2, 3);
|
||||
|
||||
|
||||
/**
|
||||
@ -124,7 +124,7 @@ OPAL_DECLSPEC int opal_asprintf(char **ptr, const char *fmt, ...);
|
||||
*
|
||||
* THIS IS A PORTABILITY FEATURE: USE vasprintf() in CODE.
|
||||
*/
|
||||
OPAL_DECLSPEC int opal_vasprintf(char **ptr, const char *fmt, va_list ap);
|
||||
OPAL_DECLSPEC int opal_vasprintf(char **ptr, const char *fmt, va_list ap) __opal_attribute_format__(__printf__, 2, 0);
|
||||
|
||||
|
||||
#if defined(c_plusplus) || defined(__cplusplus)
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user