Skip to content
This repository has been archived by the owner on Mar 9, 2019. It is now read-only.

Commit

Permalink
adding seperate files to compile on IBM Power and Z
Browse files Browse the repository at this point in the history
Signed-off-by: Srini Brahmaroutu <[email protected]>
  • Loading branch information
brahmaroutu committed Oct 3, 2015
1 parent 51f99c8 commit 721cf88
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
9 changes: 9 additions & 0 deletions bolt_ppc64le.go
Original file line number Diff line number Diff line change
@@ -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 changes: 9 additions & 0 deletions bolt_s390x.go
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 721cf88

Please sign in to comment.