From 2cb5078ce2639b66360e6c5bba356d83af7760df Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Mon, 7 Oct 2019 12:59:51 +0200 Subject: Update NUMA API library to latest version Brings support of PPC and S390 platforms, which are required to have Blender compiled on all ports of Debian. --- intern/numaapi/README.blender | 2 +- intern/numaapi/source/build_config.h | 27 +++++++++++++++++++++++++++ 2 files changed, 28 insertions(+), 1 deletion(-) (limited to 'intern') diff --git a/intern/numaapi/README.blender b/intern/numaapi/README.blender index 6f71d5f8807..0151be80e10 100644 --- a/intern/numaapi/README.blender +++ b/intern/numaapi/README.blender @@ -1,5 +1,5 @@ Project: LibNumaAPI URL: https://github.com/Nazg-Gul/libNumaAPI License: MIT -Upstream version: 4e7206befce +Upstream version: 1afdd28a08d Local modifications: None 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. -- cgit v1.2.3