Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CeilToPowerOfTwo ¶
CeilToPowerOfTwo returns n if it is a power-of-two, otherwise the next-highest power-of-two.
func ClosestPowerOfTwo ¶
ClosestPowerOfTwo returns n if it is a power-of-two, otherwise the closest power-of-two.
func FloorToPowerOfTwo ¶
FloorToPowerOfTwo returns n if it is a power-of-two, otherwise the next-highest power-of-two.
func IsPowerOfTwo ¶
IsPowerOfTwo reports whether given integer is a power of two.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.