Documentation
¶
Index ¶
- Constants
- func AlignInt32(value, alignment int32) int32
- func FastMod3(value uint64) int32
- func IsPowerOfTwo(value int64) bool
- func MemPrint(ptr uintptr, len int) string
- func Memcpy(dest uintptr, src uintptr, length int32)
- func NumberOfTrailingZeroes(value uint32) uint8
- func Print(bytes []byte)
- func SemanticVersionCompose(major uint8, minor uint8, patch uint8) uint32
- func SemanticVersionMajor(version uint32) uint8
- func SemanticVersionMinor(version uint32) uint8
- func SemanticVersionPatch(version uint32) uint8
- func SemanticVersionToString(version uint32) string
Constants ¶
View Source
const ( // CacheLineLength is a constant for the size of a CPU cache line CacheLineLength int32 = 64 // SizeOfInt32 is a constant for the size of int32. Ha. Just for Clarity SizeOfInt32 int32 = int32(unsafe.Sizeof(i32)) // SizeOfInt64 is a constant for the size of int64 SizeOfInt64 int32 = int32(unsafe.Sizeof(i64)) )
Variables ¶
This section is empty.
Functions ¶
func AlignInt32 ¶
AlignInt32 will return a number rounded up to the alignment boundary
func IsPowerOfTwo ¶
IsPowerOfTwo checks that the argument number is a power of two
func NumberOfTrailingZeroes ¶
NumberOfTrailingZeroes is HD recipe for determining the number of leading zeros on 32 bit integer
func SemanticVersionCompose ¶
func SemanticVersionMajor ¶
func SemanticVersionMinor ¶
func SemanticVersionPatch ¶
func SemanticVersionToString ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.