Lines Matching refs:size
50 ** size -- size of block.
60 sm_rpool_allocblock_x(rpool, size)
62 size_t size;
66 p = sm_malloc_x(sizeof(SM_POOLHDR_T) + size);
77 ** size -- size of block.
84 sm_rpool_allocblock(rpool, size)
86 size_t size;
90 p = sm_malloc(sizeof(SM_POOLHDR_T) + size);
104 ** size -- size of block.
116 ** if size == 0 and the rpool is new (no memory
119 ** - wasting 1 byte (size < avail)
126 sm_rpool_malloc_tagged_x(rpool, size, file, line, group)
128 size_t size;
133 sm_rpool_malloc_x(rpool, size)
135 size_t size;
141 return sm_malloc_tagged_x(size, file, line, group);
143 /* Ensure that size is properly aligned. */
144 if (size & SM_ALIGN_BITS)
145 size = (size & ~SM_ALIGN_BITS) + SM_ALIGN_SIZE;
148 if (size <= rpool->sm_poolavail)
151 rpool->sm_poolptr += size;
152 rpool->sm_poolavail -= size;
166 ** If size > sm_poolsize, then malloc a new block especially for
174 ** we malloc a block just for the current request if size >
180 if (size > rpool->sm_bigobjectsize)
185 return sm_rpool_allocblock_x(rpool, size);
189 rpool->sm_poolptr = ptr + size;
190 rpool->sm_poolavail = rpool->sm_poolsize - size;
203 ** size -- size of block.
212 ** if size == 0 and the rpool is new (no memory
215 ** - wasting 1 byte (size < avail)
222 sm_rpool_malloc_tagged(rpool, size, file, line, group)
224 size_t size;
229 sm_rpool_malloc(rpool, size)
231 size_t size;
237 return sm_malloc_tagged(size, file, line, group);
239 /* Ensure that size is properly aligned. */
240 if (size & SM_ALIGN_BITS)
241 size = (size & ~SM_ALIGN_BITS) + SM_ALIGN_SIZE;
244 if (size <= rpool->sm_poolavail)
247 rpool->sm_poolptr += size;
248 rpool->sm_poolavail -= size;
262 ** If size > sm_poolsize, then malloc a new block especially for
270 ** we malloc a block just for the current request if size >
276 if (size > rpool->sm_bigobjectsize)
281 return sm_rpool_allocblock(rpool, size);
287 rpool->sm_poolptr = ptr + size;
288 rpool->sm_poolavail = rpool->sm_poolsize - size;
348 ** poolsize -- size of a single rpool block.
349 ** bigobjectsize -- if this size is exceeded, an individual