Home | History | Annotate | Download | only in sljit

Lines Matching defs:CHUNK_SIZE

69 #define CHUNK_SIZE	0x10000
74 * the size is always divisible by CHUNK_SIZE
125 #define CHUNK_MASK (~(CHUNK_SIZE - 1))
180 sljit_uw chunk_size;
190 chunk_size = free_block->size;
191 if (chunk_size > size + 64) {
193 chunk_size -= size;
194 free_block->size = chunk_size;
195 header = AS_BLOCK_HEADER(free_block, chunk_size);
196 header->prev_size = chunk_size;
202 size = chunk_size;
212 chunk_size = (size + sizeof(struct block_header) + CHUNK_SIZE - 1) & CHUNK_MASK;
213 header = (struct block_header*)alloc_chunk(chunk_size);
219 chunk_size -= sizeof(struct block_header);
220 total_size += chunk_size;
223 if (chunk_size > size + 64) {
227 chunk_size -= size;
231 sljit_insert_free_block(free_block, chunk_size);
232 next_header = AS_BLOCK_HEADER(free_block, chunk_size);
236 allocated_size += chunk_size;
237 header->size = chunk_size;
238 next_header = AS_BLOCK_HEADER(header, chunk_size);
241 next_header->prev_size = chunk_size;