… | |
… | |
148 | #define ECB_NO_SMP 1 |
148 | #define ECB_NO_SMP 1 |
149 | #endif |
149 | #endif |
150 | |
150 | |
151 | #if ECB_NO_SMP |
151 | #if ECB_NO_SMP |
152 | #define ECB_MEMORY_FENCE do { } while (0) |
152 | #define ECB_MEMORY_FENCE do { } while (0) |
|
|
153 | #endif |
|
|
154 | |
|
|
155 | /* http://www-01.ibm.com/support/knowledgecenter/SSGH3R_13.1.0/com.ibm.xlcpp131.aix.doc/compiler_ref/compiler_builtins.html */ |
|
|
156 | #if __xlC__ && ECB_CPP |
|
|
157 | #include <builtins.h> |
153 | #endif |
158 | #endif |
154 | |
159 | |
155 | #ifndef ECB_MEMORY_FENCE |
160 | #ifndef ECB_MEMORY_FENCE |
156 | #if ECB_GCC_VERSION(2,5) || defined __INTEL_COMPILER || (__llvm__ && __GNUC__) || __SUNPRO_C >= 0x5110 || __SUNPRO_CC >= 0x5110 |
161 | #if ECB_GCC_VERSION(2,5) || defined __INTEL_COMPILER || (__llvm__ && __GNUC__) || __SUNPRO_C >= 0x5110 || __SUNPRO_CC >= 0x5110 |
157 | #if __i386 || __i386__ |
162 | #if __i386 || __i386__ |
… | |
… | |
371 | #define ecb_unused ecb_attribute ((__unused__)) |
376 | #define ecb_unused ecb_attribute ((__unused__)) |
372 | #define ecb_const ecb_attribute ((__const__)) |
377 | #define ecb_const ecb_attribute ((__const__)) |
373 | #define ecb_pure ecb_attribute ((__pure__)) |
378 | #define ecb_pure ecb_attribute ((__pure__)) |
374 | |
379 | |
375 | #if ECB_C11 || __IBMC_NORETURN |
380 | #if ECB_C11 || __IBMC_NORETURN |
376 | /* http://pic.dhe.ibm.com/infocenter/compbg/v121v141/topic/com.ibm.xlcpp121.bg.doc/language_ref/noreturn.html */ |
381 | /* http://www-01.ibm.com/support/knowledgecenter/SSGH3R_13.1.0/com.ibm.xlcpp131.aix.doc/language_ref/noreturn.html */ |
377 | #define ecb_noreturn _Noreturn |
382 | #define ecb_noreturn _Noreturn |
378 | #elif ECB_CPP11 |
383 | #elif ECB_CPP11 |
379 | #define ecb_noreturn [[noreturn]] |
384 | #define ecb_noreturn [[noreturn]] |
380 | #elif _MSC_VER >= 1200 |
385 | #elif _MSC_VER >= 1200 |
381 | /* http://msdn.microsoft.com/en-us/library/k6ktzx3s.aspx */ |
386 | /* http://msdn.microsoft.com/en-us/library/k6ktzx3s.aspx */ |