Lines Matching refs:alloc
232 void* alloc; in ZSTD_cwksp_reserve_internal() local
235 alloc = (BYTE *)ws->allocStart - bytes; in ZSTD_cwksp_reserve_internal()
242 alloc, bytes, ZSTD_cwksp_available_space(ws) - bytes); in ZSTD_cwksp_reserve_internal()
244 assert(alloc >= bottom); in ZSTD_cwksp_reserve_internal()
245 if (alloc < bottom) { in ZSTD_cwksp_reserve_internal()
250 if (alloc < ws->tableValidEnd) { in ZSTD_cwksp_reserve_internal()
251 ws->tableValidEnd = alloc; in ZSTD_cwksp_reserve_internal()
253 ws->allocStart = alloc; in ZSTD_cwksp_reserve_internal()
256 return alloc; in ZSTD_cwksp_reserve_internal()
281 void* alloc = ws->tableEnd; in ZSTD_cwksp_reserve_table() local
282 void* end = (BYTE *)alloc + bytes; in ZSTD_cwksp_reserve_table()
286 alloc, bytes, ZSTD_cwksp_available_space(ws) - bytes); in ZSTD_cwksp_reserve_table()
299 return alloc; in ZSTD_cwksp_reserve_table()
307 void* alloc = ws->objectEnd; in ZSTD_cwksp_reserve_object() local
308 void* end = (BYTE*)alloc + roundedBytes; in ZSTD_cwksp_reserve_object()
313 alloc, bytes, roundedBytes, ZSTD_cwksp_available_space(ws) - roundedBytes); in ZSTD_cwksp_reserve_object()
314 assert(((size_t)alloc & (sizeof(void*)-1)) == 0); in ZSTD_cwksp_reserve_object()
328 return alloc; in ZSTD_cwksp_reserve_object()