RetroArch
Classes | Macros | Functions | Variables
memb.h File Reference
#include <gctypes.h>
Include dependency graph for memb.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  memb_blks
 

Macros

#define MEMB(name, size, num)
 

Functions

void memb_init (struct memb_blks *blk)
 
voidmemb_alloc (struct memb_blks *blk)
 
u8 memb_free (struct memb_blks *blk, void *ptr)
 
u8 memb_ref (struct memb_blks *blk, void *ptr)
 

Variables

struct memb_blks __attribute
 

Macro Definition Documentation

◆ MEMB

#define MEMB (   name,
  size,
  num 
)
Value:
static u8 memb_mem_##name[(MEM_ALIGN_SIZE(size)+sizeof(u32))*num]; \
static struct memb_blks name = {size,num,memb_mem_##name}
GLuint const GLchar * name
Definition: glext.h:6671
GLsizeiptr size
Definition: glext.h:6559
Definition: memb.h:10
GLuint GLuint num
Definition: glext.h:10525
#define MEM_ALIGN_SIZE(size)
Definition: mem.h:53
uint8_t u8
8bit unsigned integer
Definition: gctypes.h:17
uint32_t u32
32bit unsigned integer
Definition: gctypes.h:19

Function Documentation

◆ memb_alloc()

void* memb_alloc ( struct memb_blks blk)
Here is the caller graph for this function:

◆ memb_free()

u8 memb_free ( struct memb_blks blk,
void ptr 
)
Here is the caller graph for this function:

◆ memb_init()

void memb_init ( struct memb_blks blk)
Here is the caller graph for this function:

◆ memb_ref()

u8 memb_ref ( struct memb_blks blk,
void ptr 
)

Variable Documentation

◆ __attribute

struct memb_blks __attribute