package
Version:
v1.1.0
Opens a new window with list of versions in this module.
Published: Apr 30, 2026
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
¶
Down aligns v down to the previous multiple of a.
a must be a power of two.
Up aligns v up to the next multiple of a.
a must be a power of two.
Unsigned is a local type constraint for unsigned integers.
We intentionally avoid external dependencies (e.g. golang.org/x/exp/constraints)
to keep go-foundation stdlib-only.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.