RTEMS
5.1
|
Basic Definitions. More...
#include <rtems/score/cpuopts.h>
#include <stddef.h>
#include <stdbool.h>
#include <stdint.h>
Go to the source code of this file.
Macros | |
#define | TRUE 1 |
#define | FALSE 0 |
#define | RTEMS_INLINE_ROUTINE static inline |
#define | RTEMS_COMPILER_MEMORY_BARRIER() |
#define | RTEMS_NO_INLINE |
#define | RTEMS_NO_RETURN |
#define | RTEMS_COMPILER_NO_RETURN_ATTRIBUTE RTEMS_NO_RETURN |
#define | RTEMS_CONST |
#define | RTEMS_PURE |
#define | RTEMS_COMPILER_PURE_ATTRIBUTE RTEMS_PURE |
#define | RTEMS_DEPRECATED |
Public name for task floating point context area. More... | |
#define | RTEMS_COMPILER_DEPRECATED_ATTRIBUTE RTEMS_DEPRECATED |
#define | RTEMS_SECTION(_section) |
Instructs the compiler to place a specific variable or function in the specified section. | |
#define | RTEMS_USED |
Instructs the compiler that a specific variable or function is used. | |
#define | RTEMS_UNUSED |
#define | RTEMS_COMPILER_UNUSED_ATTRIBUTE RTEMS_UNUSED |
#define | RTEMS_PACKED |
#define | RTEMS_ALIAS(_target) |
Instructs the compiler to generate an alias to the specified target function. | |
#define | RTEMS_WEAK_ALIAS(_target) |
Instructs the compiler to generate a weak alias to the specified target function. | |
#define | RTEMS_ALIGNED(_alignment) |
Instructs the compiler to enforce the specified alignment. | |
#define | RTEMS_COMPILER_PACKED_ATTRIBUTE RTEMS_PACKED |
#define | _Assert_Unreachable() do { } while ( 0 ) |
#define | RTEMS_UNREACHABLE() _Assert_Unreachable() |
Tells the compiler that this program point is unreachable. | |
#define | RTEMS_PRINTFLIKE(_format_pos, _ap_pos) |
Tells the compiler that this function expects printf()-like arguments. | |
#define | RTEMS_MALLOCLIKE |
Tells the compiler that this function is a memory allocation function similar to malloc(). | |
#define | RTEMS_ALLOC_SIZE(_index) |
Tells the compiler the memory allocation size parameter of this function similar to malloc(). | |
#define | RTEMS_ALLOC_SIZE_2(_count_index, _size_index) |
Tells the compiler the memory allocation item count and item size parameter of this function similar to calloc(). | |
#define | RTEMS_ALLOC_ALIGN(_index) |
Tells the compiler the memory allocation alignment parameter of this function similar to aligned_alloc(). | |
#define | RTEMS_WARN_UNUSED_RESULT |
Tells the compiler that the result of this function should be used. | |
#define | RTEMS_OBFUSCATE_VARIABLE(_var) (void) (_var) |
Obfuscates the variable so that the compiler cannot perform optimizations based on the variable value. More... | |
#define | RTEMS_DECLARE_GLOBAL_SYMBOL(_name) extern char _name[] |
Declares a global symbol with the specified name. More... | |
#define | _RTEMS_SYMBOL_NAME(_name) _name |
Constructs a symbol name. More... | |
#define | RTEMS_SYMBOL_NAME(_name) _RTEMS_SYMBOL_NAME( _name ) |
#define | RTEMS_DEFINE_GLOBAL_SYMBOL(_name, _value) |
Defines a global symbol with the specified name and value. More... | |
#define | RTEMS_PREDICT_TRUE(_exp) ( _exp ) |
Returns the value of the specified integral expression and tells the compiler that the predicted value is true (1). More... | |
#define | RTEMS_PREDICT_FALSE(_exp) ( _exp ) |
Returns the value of the specified integral expression and tells the compiler that the predicted value is false (0). More... | |
#define | RTEMS_RETURN_ADDRESS() NULL |
Returns the return address of the current function. More... | |
#define | RTEMS_STATIC_ASSERT(cond, msg) |
#define | RTEMS_ARRAY_SIZE(array) (sizeof(array) / sizeof((array)[0])) |
#define | RTEMS_ZERO_LENGTH_ARRAY 0 |
#define | RTEMS_CONTAINER_OF(_m, _type, _member_name) ( (_type *) ( (uintptr_t) ( _m ) - offsetof( _type, _member_name ) ) ) |
Returns a pointer to the container of a specified member pointer. More... | |
#define | RTEMS_TYPEOF_REFX(_ptr_level, _ptr_type) __typeof__(_ptr_level(union { int z; __typeof__(_ptr_type) x; }){0}.x) |
#define | RTEMS_DECONST(_type, _var) ((_type)(uintptr_t)(const void *) ( _var )) |
Removes the const qualifier from a type of a variable. More... | |
#define | RTEMS_DEVOLATILE(_type, _var) ((_type)(uintptr_t)(volatile void *) ( _var )) |
Removes the volatile qualifier from a type of a variable. More... | |
#define | RTEMS_DEQUALIFY(_type, _var) ((_type)(uintptr_t)(const volatile void *) ( _var )) |
Removes the all qualifiers from a type of a variable. More... | |
#define | RTEMS_HAVE_MEMBER_SAME_TYPE(_t_lhs, _m_lhs, _t_rhs, _m_rhs) true |
Evaluates to true if the members of two types have the same type. More... | |
#define | RTEMS_CONCAT(_x, _y) _x##_y |
Concatenates _x and _y without expanding. | |
#define | RTEMS_XCONCAT(_x, _y) RTEMS_CONCAT( _x, _y ) |
Concatenates expansion of _x and expansion of _y. | |
#define | RTEMS_STRING(_x) #_x |
Stringifies _x without expanding. | |
#define | RTEMS_XSTRING(_x) RTEMS_STRING( _x ) |
Stringifies expansion of _x. | |
Typedefs | |
typedef void *proc_ptr | RTEMS_DEPRECATED |
Basic Definitions.