Lines Matching refs:size
52 ** size -- size of block.
62 sm_rpool_allocblock_x(rpool, size)
64 size_t size;
68 p = sm_malloc_x(sizeof(SM_POOLHDR_T) + size);
79 ** size -- size of block.
86 sm_rpool_allocblock(rpool, size)
88 size_t size;
92 p = sm_malloc(sizeof(SM_POOLHDR_T) + size);
106 ** size -- size of block.
118 ** if size == 0 and the rpool is new (no memory
121 ** - wasting 1 byte (size < avail)
128 sm_rpool_malloc_tagged_x(rpool, size, file, line, group)
130 size_t size;
135 sm_rpool_malloc_x(rpool, size)
137 size_t size;
143 return sm_malloc_tagged_x(size, file, line, group);
145 /* Ensure that size is properly aligned. */
146 if (size & SM_ALIGN_BITS)
147 size = (size & ~SM_ALIGN_BITS) + SM_ALIGN_SIZE;
150 if (size <= rpool->sm_poolavail)
153 rpool->sm_poolptr += size;
154 rpool->sm_poolavail -= size;
168 ** If size > sm_poolsize, then malloc a new block especially for
176 ** we malloc a block just for the current request if size >
182 if (size > rpool->sm_bigobjectsize)
187 return sm_rpool_allocblock_x(rpool, size);
191 rpool->sm_poolptr = ptr + size;
192 rpool->sm_poolavail = rpool->sm_poolsize - size;
205 ** size -- size of block.
214 ** if size == 0 and the rpool is new (no memory
217 ** - wasting 1 byte (size < avail)
224 sm_rpool_malloc_tagged(rpool, size, file, line, group)
226 size_t size;
231 sm_rpool_malloc(rpool, size)
233 size_t size;
239 return sm_malloc_tagged(size, file, line, group);
241 /* Ensure that size is properly aligned. */
242 if (size & SM_ALIGN_BITS)
243 size = (size & ~SM_ALIGN_BITS) + SM_ALIGN_SIZE;
246 if (size <= rpool->sm_poolavail)
249 rpool->sm_poolptr += size;
250 rpool->sm_poolavail -= size;
264 ** If size > sm_poolsize, then malloc a new block especially for
272 ** we malloc a block just for the current request if size >
278 if (size > rpool->sm_bigobjectsize)
283 return sm_rpool_allocblock(rpool, size);
289 rpool->sm_poolptr = ptr + size;
290 rpool->sm_poolavail = rpool->sm_poolsize - size;
350 ** poolsize -- size of a single rpool block.
351 ** bigobjectsize -- if this size is exceeded, an individual