Lines Matching refs:alloc

277     void* const alloc = (BYTE*)ws->allocStart - bytes;  in ZSTD_cwksp_reserve_internal_buffer_space()  local
280 alloc, bytes, ZSTD_cwksp_available_space(ws) - bytes); in ZSTD_cwksp_reserve_internal_buffer_space()
282 assert(alloc >= bottom); in ZSTD_cwksp_reserve_internal_buffer_space()
283 if (alloc < bottom) { in ZSTD_cwksp_reserve_internal_buffer_space()
290 if (alloc < ws->tableValidEnd) { in ZSTD_cwksp_reserve_internal_buffer_space()
291 ws->tableValidEnd = alloc; in ZSTD_cwksp_reserve_internal_buffer_space()
293 ws->allocStart = alloc; in ZSTD_cwksp_reserve_internal_buffer_space()
294 return alloc; in ZSTD_cwksp_reserve_internal_buffer_space()
314 void *const alloc = ws->objectEnd; in ZSTD_cwksp_internal_advance_phase() local
315 … size_t const bytesToAlign = ZSTD_cwksp_bytes_to_align_ptr(alloc, ZSTD_CWKSP_ALIGNMENT_BYTES); in ZSTD_cwksp_internal_advance_phase()
316 void *const objectEnd = (BYTE *) alloc + bytesToAlign; in ZSTD_cwksp_internal_advance_phase()
347 void* alloc; in ZSTD_cwksp_reserve_internal() local
353 alloc = ZSTD_cwksp_reserve_internal_buffer_space(ws, bytes); in ZSTD_cwksp_reserve_internal()
356 return alloc; in ZSTD_cwksp_reserve_internal()
414 void* alloc; in ZSTD_cwksp_reserve_table() local
425 alloc = ws->tableEnd; in ZSTD_cwksp_reserve_table()
426 end = (BYTE *)alloc + bytes; in ZSTD_cwksp_reserve_table()
430 alloc, bytes, ZSTD_cwksp_available_space(ws) - bytes); in ZSTD_cwksp_reserve_table()
443 assert(((size_t)alloc & (ZSTD_CWKSP_ALIGNMENT_BYTES-1)) == 0); in ZSTD_cwksp_reserve_table()
444 return alloc; in ZSTD_cwksp_reserve_table()
454 void* alloc = ws->objectEnd; in ZSTD_cwksp_reserve_object() local
455 void* end = (BYTE*)alloc + roundedBytes; in ZSTD_cwksp_reserve_object()
460 alloc, bytes, roundedBytes, ZSTD_cwksp_available_space(ws) - roundedBytes); in ZSTD_cwksp_reserve_object()
461 assert((size_t)alloc % ZSTD_ALIGNOF(void*) == 0); in ZSTD_cwksp_reserve_object()
475 return alloc; in ZSTD_cwksp_reserve_object()