Add support for arm64

Added build tag for arm64, so we won't get any errors on other
platforms with go 1.4.x.

Signed-off-by: Qiang Huang <h.huangqiang@huawei.com>
master
Qiang Huang 2015-10-09 10:29:22 +08:00
parent 51f99c8624
commit 503413c015
1 changed files with 9 additions and 0 deletions

9
bolt_arm64.go Normal file
View File

@ -0,0 +1,9 @@
// +build arm64
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