Lines Matching refs:asize
169 size_t asize; in MHD_pool_allocate() local
171 asize = ROUND_TO_ALIGN (size); in MHD_pool_allocate()
172 if ( (0 == asize) && (0 != size) ) in MHD_pool_allocate()
174 if ((pool->pos + asize > pool->end) || (pool->pos + asize < pool->pos)) in MHD_pool_allocate()
178 ret = &pool->memory[pool->end - asize]; in MHD_pool_allocate()
179 pool->end -= asize; in MHD_pool_allocate()
184 pool->pos += asize; in MHD_pool_allocate()
214 size_t asize; in MHD_pool_reallocate() local
216 asize = ROUND_TO_ALIGN (new_size); in MHD_pool_reallocate()
217 if ( (0 == asize) && (0 != new_size) ) in MHD_pool_reallocate()
219 if ((pool->end < old_size) || (pool->end < asize)) in MHD_pool_reallocate()
225 if (pool->pos + asize - old_size <= pool->end) in MHD_pool_reallocate()
228 pool->pos += asize - old_size; in MHD_pool_reallocate()
229 if (asize < old_size) /* shrinking - zero again! */ in MHD_pool_reallocate()
230 memset (&pool->memory[pool->pos], 0, old_size - asize); in MHD_pool_reallocate()
236 if (asize <= old_size) in MHD_pool_reallocate()
238 if ((pool->pos + asize >= pool->pos) && in MHD_pool_reallocate()
239 (pool->pos + asize <= pool->end)) in MHD_pool_reallocate()
244 pool->pos += asize; in MHD_pool_reallocate()