src/cx/common.h

changeset 1034
424b5b74a68f
parent 1018
c773da859bad
equal deleted inserted replaced
1033:e3009345984b 1034:424b5b74a68f
101 // --------------------------------------------------------------------------- 101 // ---------------------------------------------------------------------------
102 // Architecture Detection 102 // Architecture Detection
103 // --------------------------------------------------------------------------- 103 // ---------------------------------------------------------------------------
104 104
105 #if INTPTR_MAX == INT64_MAX 105 #if INTPTR_MAX == INT64_MAX
106 /**
107 * The address width in bits on this platform.
108 */
106 #define CX_WORDSIZE 64 109 #define CX_WORDSIZE 64
107 #elif INTPTR_MAX == INT32_MAX 110 #elif INTPTR_MAX == INT32_MAX
111 /**
112 * The address width in bits on this platform.
113 */
108 #define CX_WORDSIZE 32 114 #define CX_WORDSIZE 32
109 #else 115 #else
110 #error Unknown pointer size or missing size macros! 116 #error Unknown pointer size or missing size macros!
111 #endif 117 #endif
112 118

mercurial