Lines Matching refs:alloc
201 * Returns an adjusted alloc size that is the nearest larger multiple of 64 bytes.
247 void* const alloc = (BYTE*)ws->allocStart - bytes;
250 alloc, bytes, ZSTD_cwksp_available_space(ws) - bytes);
252 assert(alloc >= bottom);
253 if (alloc < bottom) {
254 DEBUGLOG(4, "cwksp: alloc failed!");
260 if (alloc < ws->tableValidEnd) {
261 ws->tableValidEnd = alloc;
263 ws->allocStart = alloc;
264 return alloc;
295 void* const alloc = ws->objectEnd;
296 size_t const bytesToAlign = ZSTD_cwksp_bytes_to_align_ptr(alloc, ZSTD_CWKSP_ALIGNMENT_BYTES);
297 void* const objectEnd = (BYTE*)alloc + bytesToAlign;
326 void* alloc;
332 alloc = ZSTD_cwksp_reserve_internal_buffer_space(ws, bytes);
335 return alloc;
365 void* alloc;
372 alloc = ws->tableEnd;
373 end = (BYTE *)alloc + bytes;
377 alloc, bytes, ZSTD_cwksp_available_space(ws) - bytes);
382 DEBUGLOG(4, "cwksp: table alloc failed!");
390 assert(((size_t)alloc & (ZSTD_CWKSP_ALIGNMENT_BYTES-1))== 0);
391 return alloc;
401 void* alloc = ws->objectEnd;
402 void* end = (BYTE*)alloc + roundedBytes;
407 alloc, bytes, roundedBytes, ZSTD_cwksp_available_space(ws) - roundedBytes);
408 assert((size_t)alloc % ZSTD_ALIGNOF(void*) == 0);
413 DEBUGLOG(3, "cwksp: object alloc failed!");
422 return alloc;