Merge pull request #431 from brahmaroutu/support_power_z

adding seperate files to compile on IBM Power and Z
pull/34/head v1.1.0
Ben Johnson 2015-10-21 15:23:03 -06:00
commit ee716d1410
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