forked from boltdb/bolt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement go-gitea/gitea#1107 and go-gitea/gitea#815 fixes for buildi…
…ng bolt on mips platforms.
- Loading branch information
Showing
4 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |