alignUp

Aligns n up or down.

Preconditions: alignment must be power of 2.

  1. size_t alignUp(size_t alignment, size_t n)
    @safe pure nothrow @nogc
    size_t
    alignUp
    (
    in size_t alignment
    ,
    in size_t n
    )
  2. size_t alignUp(size_t n)
  3. size_t alignDown(size_t alignment, size_t n)
  4. size_t alignDown(size_t n)

Meta