Skip to content

Commit

Permalink
Add support for riscv64 arch. (#159)
Browse files Browse the repository at this point in the history
All tests pass.
  • Loading branch information
marcopeereboom authored and xiang90 committed May 27, 2019
1 parent 4af6cfa commit 1727806
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions bolt_riscv64.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package bbolt

// 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

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

0 comments on commit 1727806

Please sign in to comment.