97 #include <stdbool.h> |
97 #include <stdbool.h> |
98 #include <stdint.h> |
98 #include <stdint.h> |
99 #include <sys/types.h> |
99 #include <sys/types.h> |
100 |
100 |
101 // --------------------------------------------------------------------------- |
101 // --------------------------------------------------------------------------- |
|
102 // Architecture Detection |
|
103 // --------------------------------------------------------------------------- |
|
104 |
|
105 #if INTPTR_MAX == INT64_MAX |
|
106 #define CX_WORDSIZE 64 |
|
107 #elif INTPTR_MAX == INT32_MAX |
|
108 #define CX_WORDSIZE 32 |
|
109 #else |
|
110 #error Unknown pointer size or missing size macros! |
|
111 #endif |
|
112 |
|
113 // --------------------------------------------------------------------------- |
102 // Attribute definitions |
114 // Attribute definitions |
103 // --------------------------------------------------------------------------- |
115 // --------------------------------------------------------------------------- |
104 |
116 |
105 #ifndef __GNUC__ |
117 #ifndef __GNUC__ |
106 /** |
118 /** |