RetroArch
Classes | Macros | Typedefs | Functions
lwp_heap.h File Reference
#include <gctypes.h>
#include "machine/asm.h"
Include dependency graph for lwp_heap.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _heap_block_st
 
struct  _heap_iblock_st
 
struct  _heap_cntrl_st
 

Macros

#define HEAP_BLOCK_USED   1
 
#define HEAP_BLOCK_FREE   0
 
#define HEAP_DUMMY_FLAG   (0+HEAP_BLOCK_USED)
 
#define HEAP_OVERHEAD   (sizeof(u32)*2)
 
#define HEAP_BLOCK_USED_OVERHEAD   (sizeof(void*)*2)
 
#define HEAP_MIN_SIZE   (HEAP_OVERHEAD+sizeof(heap_block))
 

Typedefs

typedef struct _heap_block_st heap_block
 
typedef struct _heap_iblock_st heap_iblock
 
typedef struct _heap_cntrl_st heap_cntrl
 

Functions

u32 __lwp_heap_init (heap_cntrl *theheap, void *start_addr, u32 size, u32 pg_size)
 
void__lwp_heap_allocate (heap_cntrl *theheap, u32 size)
 
BOOL __lwp_heap_free (heap_cntrl *theheap, void *ptr)
 
u32 __lwp_heap_getinfo (heap_cntrl *theheap, heap_iblock *theinfo)
 

Macro Definition Documentation

◆ HEAP_BLOCK_FREE

#define HEAP_BLOCK_FREE   0

◆ HEAP_BLOCK_USED

#define HEAP_BLOCK_USED   1

◆ HEAP_BLOCK_USED_OVERHEAD

#define HEAP_BLOCK_USED_OVERHEAD   (sizeof(void*)*2)

◆ HEAP_DUMMY_FLAG

#define HEAP_DUMMY_FLAG   (0+HEAP_BLOCK_USED)

◆ HEAP_MIN_SIZE

#define HEAP_MIN_SIZE   (HEAP_OVERHEAD+sizeof(heap_block))

◆ HEAP_OVERHEAD

#define HEAP_OVERHEAD   (sizeof(u32)*2)

Typedef Documentation

◆ heap_block

typedef struct _heap_block_st heap_block

◆ heap_cntrl

typedef struct _heap_cntrl_st heap_cntrl

◆ heap_iblock

typedef struct _heap_iblock_st heap_iblock

Function Documentation

◆ __lwp_heap_allocate()

void* __lwp_heap_allocate ( heap_cntrl theheap,
u32  size 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ __lwp_heap_free()

BOOL __lwp_heap_free ( heap_cntrl theheap,
void ptr 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ __lwp_heap_getinfo()

u32 __lwp_heap_getinfo ( heap_cntrl theheap,
heap_iblock theinfo 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ __lwp_heap_init()

u32 __lwp_heap_init ( heap_cntrl theheap,
void start_addr,
u32  size,
u32  pg_size 
)
Here is the call graph for this function:
Here is the caller graph for this function: