代码搜索:alloc
找到约 10,000 项符合「alloc」的源代码
代码结果 10,000
www.eeworm.com/read/172327/9714235
h alloc.h
www.eeworm.com/read/170603/9797013
c alloc.c
#include "c.h"
struct block {
struct block *next;
char *limit;
char *avail;
};
union align {
long l;
char *p;
double d;
int (*f)(void);
};
union header {
struct block b;
union align a;
};
#if
www.eeworm.com/read/270032/11050584
h alloc.h
/* alloc.h
*
* Header for alloc.c
*
* The type alloc_handle_t provides an opaque reference to the
* alloc pool - only the alloc routines know its structure.
*/
typedef
struct { int dummy; }
all
www.eeworm.com/read/270032/11050586
c alloc.c
/* alloc.c
*
* A simple fast memory allocation package.
*
* AllocInit() - create an alloc pool, returns the old pool handle.
* Alloc() - allocate memory.
* AllocReset() - reset the c
www.eeworm.com/read/415363/11075230
o alloc.o
www.eeworm.com/read/415363/11075233
h alloc.h
float **alloc_floatmatrix(int cols, int rows);
char **alloc_charmatrix(int cols, int rows);
void free_matrix(void *m);
www.eeworm.com/read/415363/11075279
c alloc.c
#include
/* Allocate memory for a rows*cols array of floats.
* The elements within a column are contiguous in memory, and columns
* themselves are also contiguous in memory.
*/
float **
www.eeworm.com/read/415047/11085447
asm alloc.asm
.PB main
#init the heap
LQI $R1,3
INT 7
#allocate memory, place address in $R20
LQI $R2,20
LQI $R1,0
INT 7
MOV $R20,$R3
MOV $R2,$R20
LQI $R1,20
INT 0
LQI $R2,10
LQI $R1,16
INT 0
www.eeworm.com/read/415047/11085456
run alloc.run
www.eeworm.com/read/413185/11163777
h alloc.h
float **alloc_floatmatrix(int cols, int rows);
char **alloc_charmatrix(int cols, int rows);
void free_matrix(void *m);