Safe Haskell | None |
---|---|
Language | Haskell2010 |
Foundation.Bits
Documentation
Round up (if needed) to a multiple of alignment
closst to m
alignment
needs to be a power of two
alignRoundUp 16 8 = 16 alignRoundUp 15 8 = 16
Round down (if needed) to a multiple of alignment
closest to m
alignment
needs to be a power of two
alignRoundDown 15 8 = 8 alignRoundDown 8 8 = 8