package
Version:
v0.0.2
Opens a new window with list of versions in this module.
Published: Apr 23, 2022
License: MIT
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func CeilToPowerOfTwo(n int) int
CeilToPowerOfTwo 返回数轴右侧离n最近的2的幂次方(大于等于n)
func FloorToPowerOfTwo(n int) int
FloorToPowerOfTwo 返回数轴左侧离n最近的2的幂次方(小于等于n)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.