RetroArch
Classes | Macros | Functions | Variables
btmemr.c File Reference
#include <stdlib.h>
#include <string.h>
#include "asm.h"
#include "processor.h"
#include "bt.h"
#include "btmemr.h"
Include dependency graph for btmemr.c:

Classes

struct  mem
 

Macros

#define MIN_SIZE   12
 
#define SIZEOF_STRUCT_MEM   (sizeof(struct mem)+(((sizeof(struct mem)%MEM_ALIGNMENT)==0)?0:(4-(sizeof(struct mem)%MEM_ALIGNMENT))))
 

Functions

static void plug_holes (struct mem *rmem)
 
void btmemr_init ()
 
voidbtmemr_malloc (u32 size)
 
void btmemr_free (void *ptr)
 
voidbtmemr_realloc (void *ptr, u32 newsize)
 
voidbtmemr_reallocm (void *ptr, u32 newsize)
 

Variables

static struct memram_free
 
static struct memram_end
 
static u8 ram_block [sizeof(struct mem)+MEM_SIZE+MEM_ALIGNMENT]
 

Macro Definition Documentation

◆ MIN_SIZE

#define MIN_SIZE   12

◆ SIZEOF_STRUCT_MEM

#define SIZEOF_STRUCT_MEM   (sizeof(struct mem)+(((sizeof(struct mem)%MEM_ALIGNMENT)==0)?0:(4-(sizeof(struct mem)%MEM_ALIGNMENT))))

Function Documentation

◆ btmemr_free()

void btmemr_free ( void ptr)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btmemr_init()

void btmemr_init ( )
Here is the caller graph for this function:

◆ btmemr_malloc()

void* btmemr_malloc ( u32  size)
Here is the caller graph for this function:

◆ btmemr_realloc()

void* btmemr_realloc ( void ptr,
u32  newsize 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ btmemr_reallocm()

void* btmemr_reallocm ( void ptr,
u32  newsize 
)
Here is the call graph for this function:

◆ plug_holes()

static void plug_holes ( struct mem rmem)
static
Here is the caller graph for this function:

Variable Documentation

◆ ram_block

u8 ram_block[sizeof(struct mem)+MEM_SIZE+MEM_ALIGNMENT]
static

◆ ram_end

struct mem* ram_end
static

◆ ram_free

struct mem* ram_free
static