adding seperate files to compile on IBM Power and Z

Signed-off-by: Srini Brahmaroutu <srbrahma@us.ibm.com>
pull/34/head
Srini Brahmaroutu 2015-09-28 23:38:14 +00:00
parent 51f99c8624
commit 721cf88e1b
2 changed files with 18 additions and 0 deletions

9
bolt_ppc64le.go Normal file
View File

@ -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

9
bolt_s390x.go Normal file
View File

@ -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