Home
last modified time | relevance | path

Searched refs:block (Results 1 – 6 of 6) sorted by relevance

/unit/src/
H A Dnxt_unicode_lowcase.pl31 for my $block (sort { $a <=> $b } keys %blocks) {
32 if ($max_block < $block) {
33 $max_block = $block;
52 for my $block (sort { $a <=> $b } keys %blocks) {
53 my $block_size = ($block != $max_block) ? BLOCK_SIZE : $last_block_size;
57 $block, $block_size);
62 my $n = $block * BLOCK_SIZE + $c;
79 for my $block (0 .. $max_block) {
80 if (exists($blocks{$block})) {
81 printf(" nxt_unicode_block_%03x,\n", $block);
H A Dnxt_mp.c336 p = block->start; in nxt_mp_destroy()
339 nxt_free(block); in nxt_mp_destroy()
508 nxt_mp_block_t *block; in nxt_mp_page_addr() local
717 nxt_mp_block_t *block; in nxt_mp_alloc_large() local
734 nxt_free(block); in nxt_mp_alloc_large()
752 block->type = type; in nxt_mp_alloc_large()
754 block->size = size; in nxt_mp_alloc_large()
755 block->start = p; in nxt_mp_alloc_large()
787 nxt_mp_block_t *block; in nxt_mp_free() local
848 } else if (p >= block->start + block->size) { in nxt_mp_find_block()
[all …]
H A Dnxt_mem_zone.c164 nxt_mem_zone_free_block_t *block; in nxt_mem_zone_init() local
201 block->size = pages; in nxt_mem_zone_init()
665 node_pages = block->size; in nxt_mem_zone_alloc_pages()
672 prev_size = p - (u_char *) block; in nxt_mem_zone_alloc_pages()
678 block->size = prev_pages; in nxt_mem_zone_alloc_pages()
739 if (pages <= block->size) { in nxt_mem_zone_find_free_block()
749 if (pages == block->size) { in nxt_mem_zone_find_free_block()
752 return block; in nxt_mem_zone_find_free_block()
757 end = nxt_pointer_to(block, block->size << zone->page_size_shift); in nxt_mem_zone_find_free_block()
760 return block; in nxt_mem_zone_find_free_block()
[all …]
H A Dnxt_utf8.c213 const uint32_t *block; in nxt_utf8_lowcase() local
226 block = nxt_unicode_blocks[u / NXT_UNICODE_BLOCK_SIZE]; in nxt_utf8_lowcase()
228 if (block != NULL) { in nxt_utf8_lowcase()
229 return block[u % NXT_UNICODE_BLOCK_SIZE]; in nxt_utf8_lowcase()
H A Dnxt_event_engine.c566 nxt_mem_cache_block_t *block; in nxt_event_engine_mem_alloc() local
618 block = cache->free; in nxt_event_engine_mem_alloc()
620 if (block != NULL) { in nxt_event_engine_mem_alloc()
621 cache->free = block->next; in nxt_event_engine_mem_alloc()
623 return block; in nxt_event_engine_mem_alloc()
637 nxt_mem_cache_block_t *block; in nxt_event_engine_mem_free() local
639 block = p; in nxt_event_engine_mem_free()
667 block->next = cache->free; in nxt_event_engine_mem_free()
668 cache->free = block; in nxt_event_engine_mem_free()
/unit/
H A DREADME.md16 low latency, and scalability. It is intended as a building block for any web