summaryrefslogtreecommitdiff
path: root/src/third_party/IntelRDFPMathLib20U1
diff options
context:
space:
mode:
authorGeert Bosch <geert@mongodb.com>2016-04-22 09:42:15 -0400
committerGeert Bosch <geert@mongodb.com>2016-04-22 11:18:00 -0400
commit3cdac3063cc57ca85a394eb2ba01c422b9f7d30e (patch)
tree66261057967cfa7bd771e993a713bc8c3fa7934a /src/third_party/IntelRDFPMathLib20U1
parente34014a91e1c3ce7a13aa84549fb3885760f6e25 (diff)
downloadmongo-3cdac3063cc57ca85a394eb2ba01c422b9f7d30e.tar.gz
SERVER-23553 Enable compile of intel_decimal128 library on s390
Diffstat (limited to 'src/third_party/IntelRDFPMathLib20U1')
-rwxr-xr-xsrc/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_conf.h3
-rw-r--r--src/third_party/IntelRDFPMathLib20U1/SConscript7
2 files changed, 8 insertions, 2 deletions
diff --git a/src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_conf.h b/src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_conf.h
index 0bdfd48340e..0aeb9a799f0 100755
--- a/src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_conf.h
+++ b/src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_conf.h
@@ -873,7 +873,8 @@
#if defined(WINDOWS)
#define BID_SIZE_LONG 4
#else
-#if defined(__x86_64__) || defined (__ia64__) || defined(HPUX_OS_64) || defined(__powerpc64__)
+#if defined(__x86_64__) || defined (__ia64__) || defined(HPUX_OS_64) || defined(__powerpc64__) \
+ || defined(__s390x__)
#define BID_SIZE_LONG 8
#else
#define BID_SIZE_LONG 4
diff --git a/src/third_party/IntelRDFPMathLib20U1/SConscript b/src/third_party/IntelRDFPMathLib20U1/SConscript
index dd2c0435132..b2c02213a6d 100644
--- a/src/third_party/IntelRDFPMathLib20U1/SConscript
+++ b/src/third_party/IntelRDFPMathLib20U1/SConscript
@@ -299,10 +299,15 @@ if processor == 'i386':
cpp_defines['IA32'] = '1'
cpp_defines['ia32'] = '1'
-# Using 64 bit
+# Using 64 bit little endian
elif processor == 'x86_64' or processor == 'ppc64le':
cpp_defines['efi2'] = '1'
cpp_defines['EFI2'] = '1'
+# Using 64 bit big endian
+elif processor == 's390x':
+ cpp_defines['efi2'] = '1'
+ cpp_defines['EFI2'] = '1'
+ cpp_defines['BID_BIG_ENDIAN'] = '1'
else:
assert False, "Unsupported architecture: " + processor