diff options
Diffstat (limited to 'intern/numaapi/source')
-rw-r--r-- | intern/numaapi/source/build_config.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/intern/numaapi/source/build_config.h b/intern/numaapi/source/build_config.h index 444adcc0c71..b8af51a5dd7 100644 --- a/intern/numaapi/source/build_config.h +++ b/intern/numaapi/source/build_config.h @@ -307,6 +307,27 @@ # define ARCH_CPU_32_BITS 1 # define ARCH_CPU_BIG_ENDIAN 1 # endif +#elif defined(__powerpc64__) +# define ARCH_CPU_PPC_FAMILY 1 +# define ARCH_CPU_PPC 1 +# define ARCH_CPU_64_BITS 1 +# if defined(__BIG_ENDIAN__) +# define ARCH_CPU_BIG_ENDIAN 1 +# elif defined(__LITTLE_ENDIAN) +# define ARCH_CPU_LITTLE_ENDIAN 1 +# else +# error Please define your endianness +# endif +#elif defined(__s390x__) +# define ARCH_CPU_S390_FAMILY 1 +# define ARCH_CPU_S390X 1 +# define ARCH_CPU_64_BITS 1 +# define ARCH_CPU_BIG_ENDIAN 1 +#elif defined(__s390__) +# define ARCH_CPU_S390_FAMILY 1 +# define ARCH_CPU_S390 1 +# define ARCH_CPU_31_BITS 1 +# define ARCH_CPU_BIG_ENDIAN 1 #else # error Please add support for your architecture in build_config.h #endif @@ -337,6 +358,12 @@ #if !defined(ARCH_CPU_MIPS64_FAMILY) # define ARCH_CPU_MIPS64_FAMILY 0 #endif +#if !defined(ARCH_CPU_PPC_FAMILY) +# define ARCH_CPU_PPC_FAMILY 0 +#endif +#if !defined(ARCH_CPU_S390_FAMILY) +# define ARCH_CPU_S390_FAMILY 0 +#endif //////////////////////////////////////////////////////////////////////////////// // Sizes of platform-dependent types. |