bbolt/bolt_ppc.go
Michael Vogt cef3333f2a bolt_ppc.go: define var brokenUnaligned
If this var is missing building on the ppc architecture fails.
This PR adds it.
2018-01-18 18:42:37 +01:00

13 lines
306 B
Go

// +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
// Are unaligned load/stores broken on this arch?
var brokenUnaligned = false