mirror of
https://github.com/etcd-io/bbolt.git
synced 2025-04-27 13:12:47 +00:00
Merge pull request #21 from heyitsanthony/add_mips_support
Add support for mips, mips64
This commit is contained in:
commit
ca5f9b69f3
12
bolt_mips64x.go
Normal file
12
bolt_mips64x.go
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
// +build mips64 mips64le
|
||||||
|
|
||||||
|
package bolt
|
||||||
|
|
||||||
|
// maxMapSize represents the largest mmap size supported by Bolt.
|
||||||
|
const maxMapSize = 0x8000000000 // 512GB
|
||||||
|
|
||||||
|
// maxAllocSize is the size used when creating array pointers.
|
||||||
|
const maxAllocSize = 0x7FFFFFFF
|
||||||
|
|
||||||
|
// Are unaligned load/stores broken on this arch?
|
||||||
|
var brokenUnaligned = false
|
12
bolt_mipsx.go
Normal file
12
bolt_mipsx.go
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
// +build mips mipsle
|
||||||
|
|
||||||
|
package bolt
|
||||||
|
|
||||||
|
// maxMapSize represents the largest mmap size supported by Bolt.
|
||||||
|
const maxMapSize = 0x40000000 // 1GB
|
||||||
|
|
||||||
|
// maxAllocSize is the size used when creating array pointers.
|
||||||
|
const maxAllocSize = 0xFFFFFFF
|
||||||
|
|
||||||
|
// Are unaligned load/stores broken on this arch?
|
||||||
|
var brokenUnaligned = false
|
Loading…
x
Reference in New Issue
Block a user