Nebula
Loading...
Searching...
No Matches
rangeallocator.h File Reference
#include "core/types.h"
#include "util/bit.h"
#include "util/array.h"
#include <utility>

Go to the source code of this file.

Classes

struct  Memory::RangeAllocation
 
class  Memory::RangeAllocator
 
struct  Memory::RangeAllocator::RangeAllocatorNode
 
union  Memory::RangeAllocator::BinIndex
 

Namespaces

namespace  Memory
 Allocates memory using the TLSF method (http://www.gii.upv.es/tlsf/files/ecrts04_tlsf.pdf), with extended handling of padding to better suit GPUs.
 

Functions

uint Memory::BucketFromSize (uint size)
 Get bucket from index.
 
uint Memory::BinFromSize (uint size, uint bucket)
 Get bin from index.
 

Variables

static constexpr uint Memory::NUM_BUCKETS = 0x20
 
static constexpr uint Memory::NUM_BINS_PER_BUCKET = 0x10