- 主页 [github.com]
elementary functions for integer arguments (library)
The Go standard math package lacks some frequently used integral functions. This package tries to fill the gap, providing their effective and convenient implementations.
Functions have the same or similar names as their float64 equivalents from math package (if there are any). Since Go does not allow overloading, constants and functions related to each of builtin integral types (except uintptr and type aliases like byte or rune, which are not covered by this package) are grouped within subpackage with a corresponding name (ix for int, i8 for int8, ...; ux for uint, u8 for uint8, ...).