stdx-allocator ~master (2019-07-16T13:47:43Z)
Dub
Repo
roundUpToAlignment
stdx
allocator
common
Returns
n
rounded up to a multiple of alignment, which must be a power of 2.
size_t
roundUpToAlignment
(size_t n, uint alignment)
@
safe
@
nogc
nothrow pure
size_t
roundUpToAlignment
()
(
size_t
n
,
uint
alignment
)
void
[]
roundUpToAlignment
(void[] b, uint a)
Meta
Source
See Implementation
stdx
allocator
common
functions
alignDownTo
alignUpTo
alignedAt
alignedReallocate
divideRoundUp
effectiveAlignment
goodAllocSize
isGoodDynamicAlignment
isGoodStaticAlignment
reallocate
roundDownToAlignment
roundStartToMultipleOf
roundUpToAlignment
roundUpToMultipleOf
roundUpToPowerOf2
testAllocator
testAllocatorObject
trailingZeros
manifest constants
chooseAtRuntime
forwardToMember
unbounded
templates
hasStaticallyKnownAlignment
stateSize
variables
platformAlignment
Returns n rounded up to a multiple of alignment, which must be a power of 2.