Add support for loong64 arch. (#303)

This commit is contained in:
liuxiang88 2022-01-29 10:38:50 +08:00 committed by GitHub
parent 9b8a60db84
commit 7d9f2ecba1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

9
bolt_loong64.go Normal file
View File

@ -0,0 +1,9 @@
// +build loong64
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