RetroArch
Macros | Typedefs | Functions
mem.h File Reference
#include "lwip/opt.h"
#include "lwip/arch.h"
Include dependency graph for mem.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define MEM_ALIGN_SIZE(size)   (((size) + MEM_ALIGNMENT - 1) & ~(MEM_ALIGNMENT-1))
 
#define MEM_ALIGN(addr)   ((void *)(((mem_ptr_t)(addr) + MEM_ALIGNMENT - 1) & ~(mem_ptr_t)(MEM_ALIGNMENT-1)))
 

Typedefs

typedef u16_t mem_size_t
 

Functions

void mem_init (void)
 
voidmem_malloc (mem_size_t size)
 
void mem_free (void *mem)
 
voidmem_realloc (void *mem, mem_size_t size)
 
voidmem_reallocm (void *mem, mem_size_t size)
 

Macro Definition Documentation

◆ MEM_ALIGN

#define MEM_ALIGN (   addr)    ((void *)(((mem_ptr_t)(addr) + MEM_ALIGNMENT - 1) & ~(mem_ptr_t)(MEM_ALIGNMENT-1)))

◆ MEM_ALIGN_SIZE

#define MEM_ALIGN_SIZE (   size)    (((size) + MEM_ALIGNMENT - 1) & ~(MEM_ALIGNMENT-1))

Typedef Documentation

◆ mem_size_t

typedef u16_t mem_size_t

Function Documentation

◆ mem_free()

void mem_free ( void mem)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ mem_init()

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

◆ mem_malloc()

void* mem_malloc ( mem_size_t  size)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ mem_realloc()

void* mem_realloc ( void mem,
mem_size_t  size 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ mem_reallocm()

void* mem_reallocm ( void mem,
mem_size_t  size 
)
Here is the call graph for this function: