Lines Matching refs:alignment
68 void* Allocate(size_t size, s32 alignment);
82 size_t GetAllocatableSize(s32 alignment) const;
127 inline void* FrameHeapBase::Allocate(size_t size, s32 alignment) in Allocate() argument
130 NN_TASSERT_(alignment != 0); in Allocate()
133 if ( alignment == 0 ) in Allocate()
138 if ( alignment > 0 ) { in Allocate()
139 ret = RoundUp(m_CurrentHead, alignment); in Allocate()
151 uptr current = ret = RoundDown(m_CurrentTail-size, -alignment); in Allocate()
271 inline size_t FrameHeapBase::GetAllocatableSize(s32 alignment) const in GetAllocatableSize() argument
273 NN_TASSERT_(alignment != 0); in GetAllocatableSize()
275 if ( alignment == 0 ) in GetAllocatableSize()
280 if ( alignment < 0 ) in GetAllocatableSize()
282 alignment = -alignment; in GetAllocatableSize()
285 uptr addr = RoundUp(m_CurrentHead, alignment); in GetAllocatableSize()
414 void* Allocate(size_t size, s32 alignment = DEFAULT_ALIGNMENT)
417 return Base::Allocate(size, alignment);
516 size_t GetAllocatableSize(s32 alignment = DEFAULT_ALIGNMENT) const
519 return Base::GetAllocatableSize(alignment);