Go to the documentation of this file.
48 #include "contiki-conf.h"
49 #include "sys/cc-gcc.h"
55 #if CC_CONF_REGISTER_ARGS
56 #define CC_REGISTER_ARG register
58 #define CC_REGISTER_ARG
65 #if CC_CONF_FUNCTION_POINTER_ARGS
66 #define CC_FUNCTION_POINTER_ARGS 1
68 #define CC_FUNCTION_POINTER_ARGS 0
74 #ifdef CC_CONF_CONST_FUNCTION_BUG
75 #define CC_CONST_FUNCTION
77 #define CC_CONST_FUNCTION const
83 #if CC_CONF_UNSIGNED_CHAR_BUGS
84 #define CC_UNSIGNED_CHAR_BUGS 1
86 #define CC_UNSIGNED_CHAR_BUGS 0
92 #if CC_CONF_DOUBLE_HASH
93 #define CC_DOUBLE_HASH 1
95 #define CC_DOUBLE_HASH 0
99 #define CC_INLINE CC_CONF_INLINE
105 #define CC_ALIGN(n) CC_CONF_ALIGN(n)
111 #ifdef CC_CONF_ASSIGN_AGGREGATE
112 #define CC_ASSIGN_AGGREGATE(dest, src) CC_CONF_ASSIGN_AGGREGATE(dest, src)
114 #define CC_ASSIGN_AGGREGATE(dest, src) *dest = *src
117 #if CC_CONF_NO_VA_ARGS
118 #define CC_NO_VA_ARGS CC_CONF_VA_ARGS
130 #define CC_ACCESS_NOW(type, variable) (*(volatile type *)&(variable))
137 #define MAX(n, m) (((n) < (m)) ? (m) : (n))
141 #define MIN(n, m) (((n) < (m)) ? (n) : (m))
145 #define ABS(n) (((n) < 0) ? -(n) : (n))
149 #define CC_CONCAT2(s1, s2) s1##s2
156 #define CC_CONCAT(s1, s2) CC_CONCAT2(s1, s2)
157 #define CC_CONCAT_EXT_2(s1, s2) CC_CONCAT2(s1, s2)
162 #define CC_CONCAT3(s1, s2, s3) s1##s2##s3
163 #define CC_CONCAT_EXT_3(s1, s2, s3) CC_CONCAT3(s1, s2, s3)