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

Commit ccd680d

Browse files
authored
Merge pull request #1 from sapk-fork/master
Implement go-gitea/gitea#1107 and go-gitea/gitea#815
2 parents e9cf4fa + 606636e commit ccd680d

File tree

4 files changed

+44
-0
lines changed

4 files changed

+44
-0
lines changed

bolt_mips.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// +build mips
2+
package bolt
3+
4+
// maxMapSize represents the largest mmap size supported by Bolt.
5+
const maxMapSize = 0x40000000 // 1GB
6+
7+
// maxAllocSize is the size used when creating array pointers.
8+
const maxAllocSize = 0xFFFFFFF
9+
10+
// brokenUnaligned Are unaligned load/stores broken on this arch?
11+
var brokenUnaligned = false

bolt_mips64.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// +build mips64
2+
package bolt
3+
4+
// maxMapSize represents the largest mmap size supported by Bolt.
5+
const maxMapSize = 0xFFFFFFFFFFFF // 256TB
6+
7+
// maxAllocSize is the size used when creating array pointers.
8+
const maxAllocSize = 0x7FFFFFFF
9+
10+
// brokenUnaligned Are unaligned load/stores broken on this arch?
11+
var brokenUnaligned = false

bolt_mips64le.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// +build mips64le
2+
package bolt
3+
4+
// maxMapSize represents the largest mmap size supported by Bolt.
5+
const maxMapSize = 0xFFFFFFFFFFFF // 256TB
6+
7+
// maxAllocSize is the size used when creating array pointers.
8+
const maxAllocSize = 0x7FFFFFFF
9+
10+
// brokenUnaligned Are unaligned load/stores broken on this arch?
11+
var brokenUnaligned = false

bolt_mipsle.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// +build mipsle
2+
package bolt
3+
4+
// maxMapSize represents the largest mmap size supported by Bolt.
5+
const maxMapSize = 0x40000000 // 1GB
6+
7+
// maxAllocSize is the size used when creating array pointers.
8+
const maxAllocSize = 0xFFFFFFF
9+
10+
// brokenUnaligned Are unaligned load/stores broken on this arch?
11+
var brokenUnaligned = false

0 commit comments

Comments
 (0)