Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CeilToPowerOfTwo ¶
CeilToPowerOfTwo returns the least power of two integer value greater than or equal to n.
func FloorToPowerOfTwo ¶
FloorToPowerOfTwo returns the greatest power of two integer value less than or equal to n.
func IsPowerOfTwo ¶
IsPowerOfTwo reports whether given integer is a power of two.
func LogarithmicRange ¶
LogarithmicRange iterates from ceiled to power of two min to max, calling cb on each iteration.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.