Versions in this module Expand all Collapse all v2 v2.16.0 Jul 24, 2024 Changes in this version + var ErrOverflow = errors.New("integer overflow") + func AlignPowTwo(x uint) uint + func AlignPowTwo32(x uint32) uint32 + func AlignPowTwo64(x uint64) uint64 + func IsPowTwo(x uint) bool + func IsPowTwo32(x uint32) bool + func IsPowTwo64(x uint64) bool + func NextPowTwo(x uint) uint + func NextPowTwo32(x uint32) uint32 + func NextPowTwo64(x uint64) uint64 + func Pow[T constraints.Integer](x, n T) T