From 721cf88e1b42e1a1112ec99600ec7c4ac3ebe34e Mon Sep 17 00:00:00 2001 From: Srini Brahmaroutu Date: Mon, 28 Sep 2015 23:38:14 +0000 Subject: [PATCH] adding seperate files to compile on IBM Power and Z Signed-off-by: Srini Brahmaroutu --- bolt_ppc64le.go | 9 +++++++++ bolt_s390x.go | 9 +++++++++ 2 files changed, 18 insertions(+) create mode 100644 bolt_ppc64le.go create mode 100644 bolt_s390x.go diff --git a/bolt_ppc64le.go b/bolt_ppc64le.go new file mode 100644 index 00000000..8351e129 --- /dev/null +++ b/bolt_ppc64le.go @@ -0,0 +1,9 @@ +// +build ppc64le + +package bolt + +// maxMapSize represents the largest mmap size supported by Bolt. +const maxMapSize = 0xFFFFFFFFFFFF // 256TB + +// maxAllocSize is the size used when creating array pointers. +const maxAllocSize = 0x7FFFFFFF diff --git a/bolt_s390x.go b/bolt_s390x.go new file mode 100644 index 00000000..f4dd26bb --- /dev/null +++ b/bolt_s390x.go @@ -0,0 +1,9 @@ +// +build s390x + +package bolt + +// maxMapSize represents the largest mmap size supported by Bolt. +const maxMapSize = 0xFFFFFFFFFFFF // 256TB + +// maxAllocSize is the size used when creating array pointers. +const maxAllocSize = 0x7FFFFFFF