Lines Matching refs:alignment
70 void* Allocate(size_t size, s32 alignment);
84 size_t GetAllocatableSize(s32 alignment) const;
129 inline void* FrameHeapBase::Allocate(size_t size, s32 alignment) in Allocate() argument
132 NN_TASSERT_(alignment != 0); in Allocate()
135 if ( alignment == 0 ) in Allocate()
140 if ( alignment > 0 ) { in Allocate()
141 ret = RoundUp(m_CurrentHead, alignment); in Allocate()
153 uptr current = ret = RoundDown(m_CurrentTail-size, -alignment); in Allocate()
273 inline size_t FrameHeapBase::GetAllocatableSize(s32 alignment) const in GetAllocatableSize() argument
275 NN_TASSERT_(alignment != 0); in GetAllocatableSize()
277 if ( alignment == 0 ) in GetAllocatableSize()
282 if ( alignment < 0 ) in GetAllocatableSize()
284 alignment = -alignment; in GetAllocatableSize()
287 uptr addr = RoundUp(m_CurrentHead, alignment); in GetAllocatableSize()
418 void* Allocate(size_t size, s32 alignment = DEFAULT_ALIGNMENT)
421 return Base::Allocate(size, alignment);
520 size_t GetAllocatableSize(s32 alignment = DEFAULT_ALIGNMENT) const
523 return Base::GetAllocatableSize(alignment);