Skip to content
This repository was archived by the owner on Feb 20, 2019. It is now read-only.

Implement go-gitea/gitea#1107 and go-gitea/gitea#815 #1

Merged
merged 1 commit into from
Apr 20, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions bolt_mips.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// +build mips
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

// brokenUnaligned Are unaligned load/stores broken on this arch?
var brokenUnaligned = false
11 changes: 11 additions & 0 deletions bolt_mips64.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// +build mips64
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

// brokenUnaligned Are unaligned load/stores broken on this arch?
var brokenUnaligned = false
11 changes: 11 additions & 0 deletions bolt_mips64le.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// +build mips64le
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

// brokenUnaligned Are unaligned load/stores broken on this arch?
var brokenUnaligned = false
11 changes: 11 additions & 0 deletions bolt_mipsle.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// +build 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

// brokenUnaligned Are unaligned load/stores broken on this arch?
var brokenUnaligned = false