Home
last modified time | relevance | path

Searched refs:min_request (Results 1 – 2 of 2) sorted by relevance

/external/pdfium/third_party/libjpeg/
Dfpdfapi_jmemmgr.c265 size_t odd_bytes, min_request, slop; in alloc_small() local
291 min_request = sizeofobject + SIZEOF(small_pool_hdr); in alloc_small()
297 if (slop > (size_t) (MAX_ALLOC_CHUNK-min_request)) in alloc_small()
298 slop = (size_t) (MAX_ALLOC_CHUNK-min_request); in alloc_small()
301 hdr_ptr = (small_pool_ptr) jpeg_get_small(cinfo, min_request + slop); in alloc_small()
308 mem->total_space_allocated += min_request + slop; in alloc_small()
/external/libjpeg-turbo/
Djmemmgr.c273 size_t min_request, slop; in alloc_small() local
308 min_request = sizeof(small_pool_hdr) + sizeofobject + ALIGN_SIZE - 1; in alloc_small()
314 if (slop > (size_t) (MAX_ALLOC_CHUNK-min_request)) in alloc_small()
315 slop = (size_t) (MAX_ALLOC_CHUNK-min_request); in alloc_small()
318 hdr_ptr = (small_pool_ptr) jpeg_get_small(cinfo, min_request + slop); in alloc_small()
325 mem->total_space_allocated += min_request + slop; in alloc_small()