Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AlignDown ¶
func AlignDown[T Uint](n, a T) T
AlignDown rounds n down to multiple of a. a must be a power of 2.
func AlignUp ¶
func AlignUp[T Uint](n, a T) T
AlignUp rounds n up to multiple of a. a must be a power of 2.
func IsPowerOfTwo ¶
Types ¶
type Complex ¶
type Complex interface {
~complex64 | ~complex128
}
Complex is the type union of all complex types.
Click to show internal directories.
Click to hide internal directories.