Home
last modified time | relevance | path

Searched refs:Allocator (Results 1 – 6 of 6) sorted by relevance

/CTR-SDK-4.2.5/include/nn/fnd/
Dfnd_Allocator.h61 template <typename Allocator, typename Tag>
66 static void SetAllocator(Allocator allocator) { s_Allocator = allocator; } in SetAllocator()
67 static Allocator GetAllocator() { return s_Allocator; } in GetAllocator()
70 static Allocator s_Allocator;
73 template <typename Allocator, typename T, typename Tag = void>
74 class StdAllocatorAdapter : public StdAllocatorAdapterHolder<Allocator, Tag>
85 template <class U> struct rebind { typedef StdAllocatorAdapter<Allocator, U, Tag> other; };
88 template <class U> StdAllocatorAdapter(const StdAllocatorAdapter<Allocator, U, Tag>&) throw() {} in StdAllocatorAdapter() argument
92 …e_type n, void* = 0) { return static_cast<T*>(StdAllocatorAdapterHolder<Allocator, Tag>::GetAlloca…
93 …void deallocate(pointer p, size_type) { StdAllocatorAdapterHolder<Allocator, Tag>::GetAllocator()-… in deallocate()
[all …]
Dfnd_WaitableUnitHeap.h156 class Allocator; variable
161 class WaitableUnitHeap<LockPolicy, Semaphore>::Allocator : public IAllocator
165 Allocator(WaitableUnitHeap& heap) : m_Heap(&heap) {} in Allocator() function
167 Allocator() : m_Heap(0) {} in Allocator() function
184 inline void* WaitableUnitHeap<LockPolicy, Semaphore>::Allocator::Allocate(size_t size, s32 alignmen… in Allocate()
Dfnd_UnitHeap.h409 class Allocator; variable
417 class UnitHeapTemplate<LockPolicy>::Allocator : public IAllocator
426 Allocator(UnitHeapTemplate<LockPolicy>& heap) : m_Heap(&heap) {} in Allocator() function
431 Allocator() : m_Heap(0) {} in Allocator() function
473 inline void* UnitHeapTemplate<LockPolicy>::Allocator::Allocate(size_t size, s32 alignment) in Allocate()
486 inline void UnitHeapTemplate<LockPolicy>::Allocator::Free(void* p) in Free()
Dfnd_ExpHeap.h506 class Allocator; variable
514 class ExpHeapTemplate<LockPolicy>::Allocator : public IAllocator
526Allocator(ExpHeapTemplate<LockPolicy>& heap, bit8 groupId = 0, AllocationMode mode = ExpHeapBase::…
531 Allocator() : m_Heap(0) {} in Allocator() function
Dfnd_BuddyHeap.h653 class Allocator; variable
657 class BuddyHeapTemplate<PageSize, MaxOrder, LockPolicy>::Allocator : public nn::fnd::IAllocator
664 Allocator(BuddyHeap& heap) : m_Heap(0) { Initialize(heap); } in Allocator() function
669 Allocator() : m_Heap(0) {} in Allocator() function
/CTR-SDK-4.2.5/sources/libraries/init/
Dinit_Alloc.cpp42 …n::util::aligned_storage<sizeof(SystemExpHeap::Allocator), nn::util::alignment_of<SystemExpHeap::A…
43 SystemExpHeap::Allocator* s_pSystemAllocator = 0; //<! Allocator for the system heap
173 s_pSystemAllocator = new (&s_SystemAllocatorBuffer) SystemExpHeap::Allocator(*s_pSystemHeap); in InitializeAllocator()