diff options
author | Srini Brahmaroutu <srbrahma@us.ibm.com> | 2015-09-28 23:38:14 +0000 |
---|---|---|
committer | Srini Brahmaroutu <srbrahma@us.ibm.com> | 2015-10-03 00:35:02 +0000 |
commit | 721cf88e1b42e1a1112ec99600ec7c4ac3ebe34e (patch) | |
tree | 6e6a28a2cd89af0d2d2cfa5a848542342253465b | |
parent | Merge pull request #428 from lukechampine/patch-1 (diff) | |
download | dedo-721cf88e1b42e1a1112ec99600ec7c4ac3ebe34e.tar.gz dedo-721cf88e1b42e1a1112ec99600ec7c4ac3ebe34e.tar.xz |
adding seperate files to compile on IBM Power and Z
Signed-off-by: Srini Brahmaroutu <srbrahma@us.ibm.com>
-rw-r--r-- | bolt_ppc64le.go | 9 | ||||
-rw-r--r-- | bolt_s390x.go | 9 |
2 files changed, 18 insertions, 0 deletions
diff --git a/bolt_ppc64le.go b/bolt_ppc64le.go new file mode 100644 index 0000000..8351e12 --- /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 0000000..f4dd26b --- /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 |