Home | History | Annotate | Download | only in preprocessor

Lines Matching refs:chunksize

55 // default alignment and chunksize, if called with 0 arguments
56 #define CHUNKSIZE (64*1024)
76 size_t chunksize;
81 MemoryPool *mem_CreatePool(size_t chunksize, unsigned int align)
86 if (chunksize == 0) chunksize = CHUNKSIZE;
88 if (chunksize < sizeof(MemoryPool)) return 0;
89 if (chunksize & (align-1)) return 0;
90 if (!(pool = malloc(chunksize))) return 0;
92 pool->chunksize = chunksize;
95 pool->end = (uintptr_t)pool + chunksize;
125 if (minreq >= pool->chunksize) {
126 // request size is too big for the chunksize, so allocate it as
131 ch = malloc(pool->chunksize);
134 pool->end = (uintptr_t)ch + pool->chunksize;