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

Commit

Permalink
Merge pull request #431 from brahmaroutu/support_power_z
Browse files Browse the repository at this point in the history
adding seperate files to compile on IBM Power and Z
  • Loading branch information
benbjohnson committed Oct 21, 2015
2 parents 12af751 + 721cf88 commit ee716d1
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 ee716d1

Please sign in to comment.