Documentation
¶
Index ¶
- func AlignDown[T Uint](n, a T) T
- func AlignUp[T Uint](n, a T) T
- func Check[T Real](T) (szBytes uintptr, float, signed bool)
- func CheckType[T Real]() (szBytes uintptr, float, signed bool)
- func IsFloat[T Real](T) bool
- func IsFloatType[T Real]() bool
- func IsPowerOfTwo[T Integer](x T) bool
- func IsSigned[T Real](T) bool
- func IsSignedType[T Real]() bool
- type Complex
- type Float
- type Int
- type Integer
- type Number
- type Pointer
- type Real
- type Uint
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 IsFloatType ¶ added in v0.2.1
func IsPowerOfTwo ¶
func IsSignedType ¶ added in v0.2.1
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.