LMMS
Loading...
Searching...
No Matches
nseel-ram.c File Reference
#include "ns-eel.h"
#include "ns-eel-int.h"
#include <math.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>

Functions

int NSEEL_VM_wantfreeRAM (NSEEL_VMCTX ctx)
void NSEEL_VM_freeRAMIfCodeRequested (NSEEL_VMCTX ctx)
EEL_F *NSEEL_CGEN_CALL __NSEEL_RAMAllocGMEM (EEL_F ***blocks, unsigned int w)
EEL_F *NSEEL_CGEN_CALL __NSEEL_RAMAlloc (EEL_F **pblocks, unsigned int w)
EEL_F *NSEEL_CGEN_CALL __NSEEL_RAM_MemFree (void *blocks, EEL_F *which)
EEL_F *NSEEL_CGEN_CALL __NSEEL_RAM_MemTop (void *blocks, EEL_F *which)
EEL_F *NSEEL_CGEN_CALL __NSEEL_RAM_MemCpy (EEL_F **blocks, EEL_F *dest, EEL_F *src, EEL_F *lenptr)
EEL_F *NSEEL_CGEN_CALL __NSEEL_RAM_MemSet (EEL_F **blocks, EEL_F *dest, EEL_F *v, EEL_F *lenptr)
static int __getset_values (EEL_F **blocks, int isset, int len, EEL_F **parms)
EEL_F NSEEL_CGEN_CALL __NSEEL_RAM_Mem_SetValues (EEL_F **blocks, INT_PTR np, EEL_F **parms)
EEL_F NSEEL_CGEN_CALL __NSEEL_RAM_Mem_GetValues (EEL_F **blocks, INT_PTR np, EEL_F **parms)
void NSEEL_VM_SetGRAM (NSEEL_VMCTX ctx, void **gram)
void NSEEL_VM_freeRAM (NSEEL_VMCTX ctx)
void NSEEL_VM_FreeGRAM (void **ufd)
EEL_F * NSEEL_VM_getramptr (NSEEL_VMCTX ctx, unsigned int offs, int *validCount)
EEL_F * NSEEL_VM_getramptr_noalloc (NSEEL_VMCTX ctx, unsigned int offs, int *validCount)

Variables

unsigned int NSEEL_RAM_limitmem =0
unsigned int NSEEL_RAM_memused =0
int NSEEL_RAM_memused_errors =0
EEL_F nseel_ramalloc_onfail
EEL_F *volatile nseel_gmembuf_default
void *(* nseel_gmem_calloc )(size_t a, size_t b)

Function Documentation

◆ __getset_values()

int __getset_values ( EEL_F ** blocks,
int isset,
int len,
EEL_F ** parms )
inlinestatic

◆ __NSEEL_RAM_Mem_GetValues()

EEL_F NSEEL_CGEN_CALL __NSEEL_RAM_Mem_GetValues ( EEL_F ** blocks,
INT_PTR np,
EEL_F ** parms )

◆ __NSEEL_RAM_Mem_SetValues()

EEL_F NSEEL_CGEN_CALL __NSEEL_RAM_Mem_SetValues ( EEL_F ** blocks,
INT_PTR np,
EEL_F ** parms )

◆ __NSEEL_RAM_MemCpy()

EEL_F *NSEEL_CGEN_CALL __NSEEL_RAM_MemCpy ( EEL_F ** blocks,
EEL_F * dest,
EEL_F * src,
EEL_F * lenptr )

◆ __NSEEL_RAM_MemFree()

EEL_F *NSEEL_CGEN_CALL __NSEEL_RAM_MemFree ( void * blocks,
EEL_F * which )

◆ __NSEEL_RAM_MemSet()

EEL_F *NSEEL_CGEN_CALL __NSEEL_RAM_MemSet ( EEL_F ** blocks,
EEL_F * dest,
EEL_F * v,
EEL_F * lenptr )

◆ __NSEEL_RAM_MemTop()

EEL_F *NSEEL_CGEN_CALL __NSEEL_RAM_MemTop ( void * blocks,
EEL_F * which )

◆ __NSEEL_RAMAlloc()

EEL_F *NSEEL_CGEN_CALL __NSEEL_RAMAlloc ( EEL_F ** pblocks,
unsigned int w )

◆ __NSEEL_RAMAllocGMEM()

EEL_F *NSEEL_CGEN_CALL __NSEEL_RAMAllocGMEM ( EEL_F *** blocks,
unsigned int w )

◆ NSEEL_VM_FreeGRAM()

void NSEEL_VM_FreeGRAM ( void ** ufd)

◆ NSEEL_VM_freeRAM()

void NSEEL_VM_freeRAM ( NSEEL_VMCTX ctx)

◆ NSEEL_VM_freeRAMIfCodeRequested()

void NSEEL_VM_freeRAMIfCodeRequested ( NSEEL_VMCTX ctx)

◆ NSEEL_VM_getramptr()

EEL_F * NSEEL_VM_getramptr ( NSEEL_VMCTX ctx,
unsigned int offs,
int * validCount )

◆ NSEEL_VM_getramptr_noalloc()

EEL_F * NSEEL_VM_getramptr_noalloc ( NSEEL_VMCTX ctx,
unsigned int offs,
int * validCount )

◆ NSEEL_VM_SetGRAM()

void NSEEL_VM_SetGRAM ( NSEEL_VMCTX ctx,
void ** gram )

◆ NSEEL_VM_wantfreeRAM()

int NSEEL_VM_wantfreeRAM ( NSEEL_VMCTX ctx)

Variable Documentation

◆ nseel_gmem_calloc

void *(* nseel_gmem_calloc) (size_t a, size_t b) ( size_t a,
size_t b )

◆ nseel_gmembuf_default

EEL_F* volatile nseel_gmembuf_default

◆ NSEEL_RAM_limitmem

unsigned int NSEEL_RAM_limitmem =0

◆ NSEEL_RAM_memused

unsigned int NSEEL_RAM_memused =0

◆ NSEEL_RAM_memused_errors

int NSEEL_RAM_memused_errors =0

◆ nseel_ramalloc_onfail

EEL_F nseel_ramalloc_onfail