Documentation ¶
Index ¶
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
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.