Documentation
¶
Index ¶
- func Abs(val int64) int64
- func CombineInt32(high, low int32) int64
- func HighInt32(whole int64) int32
- func LowInt32(whole int64) int32
- func Max(x, y int64) int64
- func Min(x, y int64) int64
- func NxtPowerOfTwo(val int64) int64
- func PowerOfTwo(val int64) bool
- func UI8GT(x, y uint8) uint8
- func UI8GTE(x, y uint8) uint8
- func UI8LT(x, y uint8) uint8
- func UI8LTE(x, y uint8) uint8
- func UI8Not(x uint8) uint8
- func UIGT(x, y uint64) uint8
- func UIGTE(x, y uint64) uint8
- func UILT(x, y uint64) uint8
- func UILTE(x, y uint64) uint8
- func UINot(x uint64) uint8
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CombineInt32 ¶
Combines two int32 values into a single int64 high occupies bits 32-63 low occupies bits 0-31
func Max ¶
Returns x if x > y, otherwise returns y
NB: Only valid if math.MinInt64 <= x-y <= math.MaxInt64 In particular, always valid if both arguments are positive
func Min ¶
Returns x if x < y, otherwise returns y
NB: Only valid if math.MinInt64 <= x-y <= math.MaxInt64 In particular, always valid if both arguments are positive
func PowerOfTwo ¶
Returns true if val is a power of two, otherwise returns false
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.