Mercurial > pub > dyncall > dyncall
comparison dyncall/dyncall_macros.h @ 179:b11b0735b09f
- renamings: sparc_v9 -> sparc64
author | cslag |
---|---|
date | Fri, 10 Feb 2017 01:07:12 +0100 |
parents | a8052efbde18 |
children | 629cfbba5ba0 |
comparison
equal
deleted
inserted
replaced
178:183594497726 | 179:b11b0735b09f |
---|---|
192 #elif defined(__aarch64__) | 192 #elif defined(__aarch64__) |
193 # define DC__Arch_ARM64 | 193 # define DC__Arch_ARM64 |
194 #elif defined(__sh__) | 194 #elif defined(__sh__) |
195 # define DC__Arch_SuperH | 195 # define DC__Arch_SuperH |
196 #elif defined(__sparcv9) || defined(__sparc64__) || ( defined(__sparc) && defined(__arch64__) ) | 196 #elif defined(__sparcv9) || defined(__sparc64__) || ( defined(__sparc) && defined(__arch64__) ) |
197 # define DC__Arch_Sparcv9 /* @@@ need this define, or use just sparc64 more generically? */ | |
198 # define DC__Arch_Sparc64 | 197 # define DC__Arch_Sparc64 |
199 #elif defined(__sparc) | 198 #elif defined(__sparc) |
200 # define DC__Arch_Sparc | 199 # define DC__Arch_Sparc |
201 #endif | 200 #endif |
202 | 201 |
259 | 258 |
260 | 259 |
261 /* Endian detection. */ | 260 /* Endian detection. */ |
262 #if defined(DC__Arch_Intel_x86) || defined(DC__Arch_AMD64) /* always little */ | 261 #if defined(DC__Arch_Intel_x86) || defined(DC__Arch_AMD64) /* always little */ |
263 # define DC__Endian_LITTLE | 262 # define DC__Endian_LITTLE |
264 #elif defined(DC__Arch_Sparc) /*always big until v9*/ | 263 #elif defined(DC__Arch_Sparc) /* always purely big until v9 */ |
265 # define DC__Endian_BIG | 264 # define DC__Endian_BIG |
266 #else /* all others are bi-endian */ | 265 #else /* all others are bi-endian */ |
267 /* @@@check flags used on following bi-endianness archs: | 266 /* @@@check flags used on following bi-endianness archs: |
268 DC__Arch_ARM | 267 DC__Arch_ARM |
269 DC__Arch_ARM64 | 268 DC__Arch_ARM64 |
270 DC__Arch_Itanium | 269 DC__Arch_Itanium |
271 DC__Arch_PPC32 | 270 DC__Arch_PPC32 |
272 DC__Arch_PPC64 | 271 DC__Arch_PPC64 |
273 DC__Arch_Sparcv9 / DC__Arch_Sparc64 | 272 DC__Arch_Sparc64 |
274 DC__Arch_SuperH | 273 DC__Arch_SuperH |
275 */ | 274 */ |
276 # if (defined(DC__Arch_PPC64) && (DC__ABI_PPC64_ELF_V == 1)) || defined(_BIG_ENDIAN) || defined(MIPSEB) || defined(__MIPSEB) || defined(__MIPSEB__) | 275 # if (defined(DC__Arch_PPC64) && (DC__ABI_PPC64_ELF_V == 1)) || defined(_BIG_ENDIAN) || defined(MIPSEB) || defined(__MIPSEB) || defined(__MIPSEB__) |
277 # define DC__Endian_BIG | 276 # define DC__Endian_BIG |
278 # elif (defined(DC__Arch_PPC64) && (DC__ABI_PPC64_ELF_V == 2)) || defined(_LITTLE_ENDIAN) || defined(MIPSEL) || defined(__MIPSEL) || defined(__MIPSEL__) | 277 # elif (defined(DC__Arch_PPC64) && (DC__ABI_PPC64_ELF_V == 2)) || defined(_LITTLE_ENDIAN) || defined(MIPSEL) || defined(__MIPSEL) || defined(__MIPSEL__) |