Go to the documentation of this file.
30 #ifndef CASA_AIPSENV_H
31 #define CASA_AIPSENV_H
36 #if __cplusplus >= 201103L
41 #if __cplusplus >= 201402L
55 #if defined(AIPS_GCC2)
58 #if (defined(AIPS_GCC) && __GNUC_CC == 2)
63 #if defined(AIPS_GCC295)
66 #if (defined(AIPS_GCC2) && __GNUC_MINOR__ == 95)
71 #if defined(AIPS_GCC3)
74 #if (defined(AIPS_GCC) && __GNUC__ == 3)
79 #if defined(AIPS_GCC4)
82 #if (defined(AIPS_GCC) && __GNUC__ == 4)
92 #if defined(_MIPS_SZPTR) && (_MIPS_SZPTR == 64)
99 #if defined(AIPS_SUN_NATIVE)
100 #undef AIPS_SUN_NATIVE
102 #if defined(__SUNPRO_CC)
103 #define AIPS_SUN_NATIVE
106 #if defined(AIPS_SOLARIS)
120 #if defined(AIPS_ALPHA)
128 #if defined(AIPS_BSD)
131 #if defined(__FreeBSD__)
133 #define AIPS_NOLARGEFILE
136 #if defined(AIPS_LINUX)
139 #if defined(__linux__)
143 #if defined(AIPS_KAI)
150 #if defined(AIPS_AIX)
157 #if defined(AIPS_INTELCC)
160 #if defined(__INTEL_COMPILER)
164 #if defined(AIPS_CRAY_PGI)
167 #if defined(__QK_USER__)
168 #define AIPS_CRAY_PGI
169 #if !defined(AIPS_NOLARGEFILE)
170 #define AIPS_NOLARGEFILE
172 #if !defined(AIPS_NO_LEA_MALLOC)
173 #define AIPS_NO_LEA_MALLOC
177 #if defined(AIPS_CRAY_CATAMOUNT)
178 #undef AIPS_CRAY_CATAMOUNT
180 #if defined(__LIB_CATAMOUNT__)
181 #define AIPS_CRAY_CATAMOUNT
184 #if (defined(__ia64) || defined(__x86_64__) || defined(__aarch64__))
185 # if !defined(AIPS_64B)
190 #if defined(AIPS_I386)
197 #if defined(AIPS_DARWIN)
200 #if defined(__APPLE__)
203 #define AIPS_NOLARGEFILE
206 #define AIPS_NO_LEA_MALLOC
207 # if defined(AIPS_LITTLE_ENDIAN)
208 # undef AIPS_LITTLE_ENDIAN
213 #if !(defined(AIPS_LITTLE_ENDIAN))
214 #if (defined(__BYTE_ORDER__) && defined(__ORDER_LITTLE_ENDIAN__))
215 #if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
216 #define AIPS_LITTLE_ENDIAN
220 #if (defined(AIPS_ALPHA) || defined(AIPS_I386) || defined(__x86_64__) || defined(__ARMEL__) || defined(__AARCH64EL__))
221 #define AIPS_LITTLE_ENDIAN
228 #ifndef AIPS_NOLARGEFILE
229 # undef _FILE_OFFSET_BITS
230 # define _FILE_OFFSET_BITS 64
231 # ifndef _LARGEFILE_SOURCE
232 # define _LARGEFILE_SOURCE
234 # ifndef _LARGEFILE64_SOURCE
235 # define _LARGEFILE64_SOURCE
243 #if defined __GNUC__ || defined __clang__
244 #define AIPS_LIKELY(x) __builtin_expect(!!(x), 1)
245 #define AIPS_UNLIKELY(x) __builtin_expect(!!(x), 0)
247 #define AIPS_LIKELY(x) (x)
248 #define AIPS_UNLIKELY(x) (x)