aboutsummaryrefslogtreecommitdiff
path: root/bolt_ppc.go
diff options
context:
space:
mode:
authorBen Johnson <benbjohnson@yahoo.com>2016-03-02 07:08:50 -0700
committerBen Johnson <benbjohnson@yahoo.com>2016-03-02 07:08:50 -0700
commita5ebf41fd5bcd729b2ec2107ad35bbc7b67da4c0 (patch)
treef29e00617fc843149319b8106461df8a523d8a8a /bolt_ppc.go
parentMerge pull request #525 from MJDSys/appveyor (diff)
parentAdd bolt_ppc.go to compile on 32-bit PPC platforms. (diff)
downloaddedo-a5ebf41fd5bcd729b2ec2107ad35bbc7b67da4c0.tar.gz
dedo-a5ebf41fd5bcd729b2ec2107ad35bbc7b67da4c0.tar.xz
Merge pull request #527 from peteheist/master
Add bolt_ppc.go to compile on 32-bit PPC platforms.
Diffstat (limited to 'bolt_ppc.go')
-rw-r--r--bolt_ppc.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/bolt_ppc.go b/bolt_ppc.go
new file mode 100644
index 0000000..645ddc3
--- /dev/null
+++ b/bolt_ppc.go
@@ -0,0 +1,9 @@
+// +build ppc
+
+package bolt
+
+// maxMapSize represents the largest mmap size supported by Bolt.
+const maxMapSize = 0x7FFFFFFF // 2GB
+
+// maxAllocSize is the size used when creating array pointers.
+const maxAllocSize = 0xFFFFFFF