This repository was archived by the owner on Feb 20, 2019. It is now read-only.
File tree 4 files changed +44
-0
lines changed 4 files changed +44
-0
lines changed Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
You can’t perform that action at this time.
0 commit comments