Skip to content

Commit 1727806

Browse files
marcopeereboomxiang90
authored andcommitted
Add support for riscv64 arch. (#159)
All tests pass.
1 parent 4af6cfa commit 1727806

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

bolt_riscv64.go

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

0 commit comments

Comments
 (0)