Lines Matching refs:alloc

247     void* const alloc = (BYTE*)ws->allocStart - bytes;  in ZSTD_cwksp_reserve_internal_buffer_space()  local
250 alloc, bytes, ZSTD_cwksp_available_space(ws) - bytes); in ZSTD_cwksp_reserve_internal_buffer_space()
252 assert(alloc >= bottom); in ZSTD_cwksp_reserve_internal_buffer_space()
253 if (alloc < bottom) { in ZSTD_cwksp_reserve_internal_buffer_space()
260 if (alloc < ws->tableValidEnd) { in ZSTD_cwksp_reserve_internal_buffer_space()
261 ws->tableValidEnd = alloc; in ZSTD_cwksp_reserve_internal_buffer_space()
263 ws->allocStart = alloc; in ZSTD_cwksp_reserve_internal_buffer_space()
264 return alloc; in ZSTD_cwksp_reserve_internal_buffer_space()
295 void* const alloc = ws->objectEnd; in ZSTD_cwksp_internal_advance_phase() local
296 … size_t const bytesToAlign = ZSTD_cwksp_bytes_to_align_ptr(alloc, ZSTD_CWKSP_ALIGNMENT_BYTES); in ZSTD_cwksp_internal_advance_phase()
297 void* const objectEnd = (BYTE*)alloc + bytesToAlign; in ZSTD_cwksp_internal_advance_phase()
326 void* alloc; in ZSTD_cwksp_reserve_internal() local
332 alloc = ZSTD_cwksp_reserve_internal_buffer_space(ws, bytes); in ZSTD_cwksp_reserve_internal()
335 return alloc; in ZSTD_cwksp_reserve_internal()
365 void* alloc; in ZSTD_cwksp_reserve_table() local
372 alloc = ws->tableEnd; in ZSTD_cwksp_reserve_table()
373 end = (BYTE *)alloc + bytes; in ZSTD_cwksp_reserve_table()
377 alloc, bytes, ZSTD_cwksp_available_space(ws) - bytes); in ZSTD_cwksp_reserve_table()
390 assert(((size_t)alloc & (ZSTD_CWKSP_ALIGNMENT_BYTES-1))== 0); in ZSTD_cwksp_reserve_table()
391 return alloc; in ZSTD_cwksp_reserve_table()
401 void* alloc = ws->objectEnd; in ZSTD_cwksp_reserve_object() local
402 void* end = (BYTE*)alloc + roundedBytes; in ZSTD_cwksp_reserve_object()
407 alloc, bytes, roundedBytes, ZSTD_cwksp_available_space(ws) - roundedBytes); in ZSTD_cwksp_reserve_object()
408 assert((size_t)alloc % ZSTD_ALIGNOF(void*) == 0); in ZSTD_cwksp_reserve_object()
422 return alloc; in ZSTD_cwksp_reserve_object()