/unit/src/ |
H A D | nxt_file_name.c | 56 if (nxt_fast_path(v != NULL)) { in nxt_file_name_create() 65 if (nxt_fast_path(p != NULL)) { in nxt_file_name_create() 83 if (nxt_fast_path(ch == 'N')) { in nxt_file_name_create() 86 if (nxt_fast_path(fn != NULL)) { in nxt_file_name_create() 145 if (nxt_fast_path(v != NULL)) { in nxt_file_name_create() 154 if (nxt_fast_path(p != NULL)) { in nxt_file_name_create() 167 if (nxt_fast_path(ch == 's')) { in nxt_file_name_create() 177 if (nxt_fast_path(ch == 'N')) { in nxt_file_name_create() 180 if (nxt_fast_path(fn != NULL)) { in nxt_file_name_create()
|
H A D | nxt_malloc.c | 37 if (nxt_fast_path(p != NULL)) { in nxt_malloc() 56 if (nxt_fast_path(p != NULL)) { in nxt_zalloc() 78 if (nxt_fast_path(n != NULL)) { in nxt_realloc() 136 if (nxt_fast_path(err == 0)) { in nxt_memalign() 159 if (nxt_fast_path(p != NULL)) { in nxt_memalign() 198 if (nxt_fast_path(size <= 2048)) { in nxt_memalign() 208 if (nxt_fast_path(p != NULL)) { in nxt_memalign()
|
H A D | nxt_parse.c | 24 if (nxt_fast_path(length != 0)) { in nxt_int_parse() 70 if (nxt_fast_path(length != 0)) { in nxt_size_t_parse() 114 if (nxt_fast_path(length != 0)) { in nxt_size_parse() 144 if (nxt_fast_path(val >= 0)) { in nxt_size_parse() 175 if (nxt_fast_path(length != 0)) { in nxt_off_t_parse() 305 if (nxt_fast_path(p != *start)) { in nxt_number_parse()
|
H A D | nxt_http_chunk_parse.c | 109 if (nxt_fast_path(c <= 5)) { in nxt_http_chunk_parse() 112 } else if (nxt_fast_path(ch == '\r')) { in nxt_http_chunk_parse() 121 if (nxt_fast_path(nxt_size_is_sufficient(hcp->chunk_size))) { in nxt_http_chunk_parse() 129 if (nxt_fast_path(ch == '\n')) { in nxt_http_chunk_parse() 144 if (nxt_fast_path(ch == '\r')) { in nxt_http_chunk_parse() 152 if (nxt_fast_path(ch == '\n')) { in nxt_http_chunk_parse()
|
H A D | nxt_thread_mutex.c | 138 if (nxt_fast_path(err == 0)) { in nxt_thread_mutex_lock() 158 if (nxt_fast_path(err == 0)) { in nxt_thread_mutex_trylock() 184 if (nxt_fast_path(err == 0)) { in nxt_thread_mutex_unlock()
|
H A D | nxt_spinlock.c | 73 if (nxt_fast_path(nxt_atomic_try_lock(lock))) { in nxt_thread_spin_lock() 96 if (nxt_fast_path(nxt_atomic_try_lock(lock))) { in nxt_thread_spin_trylock()
|
H A D | nxt_thread_cond.c | 46 if (nxt_fast_path(err == 0)) { in nxt_thread_cond_signal() 76 if (nxt_fast_path(err == 0)) { in nxt_thread_cond_wait() 97 if (nxt_fast_path(err == 0 || err == NXT_ETIMEDOUT)) { in nxt_thread_cond_wait()
|
H A D | nxt_mem_map.c | 18 if (nxt_fast_path(p != MAP_FAILED)) { in nxt_mem_mmap() 34 if (nxt_fast_path(munmap(addr, len) == 0)) { in nxt_mem_munmap()
|
H A D | nxt_file.c | 118 if (nxt_fast_path(n >= 0)) { in nxt_file_write() 146 if (nxt_fast_path(n >= 0)) { in nxt_file_read() 173 if (nxt_fast_path(ret != -1)) { in nxt_file_read_ahead() 211 if (nxt_fast_path(err == 0)) { in nxt_file_read_ahead() 234 if (nxt_fast_path(ret != -1)) { in nxt_file_read_ahead() 305 if (nxt_fast_path(unlink((char *) name) == 0)) { in nxt_file_delete() 318 if (nxt_fast_path(chmod((char *) name, access) == 0)) { in nxt_file_set_access() 336 if (nxt_fast_path(ret == 0)) { in nxt_file_rename() 368 if (nxt_fast_path(ioctl(fd, FIONBIO, &nb) != -1)) { in nxt_fd_nonblocking() 386 if (nxt_fast_path(ioctl(fd, FIONBIO, &nb) != -1)) { in nxt_fd_blocking() [all …]
|
H A D | nxt_fastcgi_record_parse.c | 105 if (nxt_fast_path(ch == 1)) { in nxt_fastcgi_record_parse() 128 if (nxt_fast_path(ch == 0)) { in nxt_fastcgi_record_parse() 137 if (nxt_fast_path(ch == 1)) { in nxt_fastcgi_record_parse() 165 if (nxt_fast_path(fp->type != NXT_FASTCGI_END_REQUEST)) { in nxt_fastcgi_record_parse() 235 if (nxt_fast_path(nb != NULL)) { in nxt_fastcgi_record_parse()
|
H A D | nxt_semaphore.c | 64 if (nxt_fast_path(sem_post(sem) == 0)) { in nxt_sem_post() 96 if (nxt_fast_path(n == 0)) { in nxt_sem_wait() 124 if (nxt_fast_path(sem_trywait(sem) == 0)) { in nxt_sem_wait() 144 if (nxt_fast_path(n == 0)) { in nxt_sem_wait()
|
H A D | nxt_list.h | 57 if (nxt_fast_path((list) != NULL)) { in nxt_list_elt() 76 if (nxt_fast_path((list) != NULL)) { \ 114 if (nxt_fast_path((list) != NULL)) { in nxt_list_nelts()
|
H A D | nxt_socket.c | 83 if (nxt_fast_path(getsockopt(s, level, sockopt, &val, &len) == 0)) { in nxt_socket_getsockopt() 105 if (nxt_fast_path(setsockopt(s, level, sockopt, &val, len) == 0)) { in nxt_socket_setsockopt() 180 if (nxt_fast_path(bind(s, &sa->u.sockaddr, sa->socklen) == 0)) { in nxt_socket_bind() 253 if (nxt_fast_path(shutdown(s, how) == 0)) { in nxt_socket_shutdown() 288 if (nxt_fast_path(close(s) == 0)) { in nxt_socket_close()
|
H A D | nxt_thread_pool.c | 65 if (nxt_fast_path(tp->ready)) { in nxt_thread_pool_init() 84 if (nxt_fast_path(nxt_sem_init(&tp->sem, 0) == NXT_OK)) { in nxt_thread_pool_init() 88 if (nxt_fast_path(link != NULL)) { in nxt_thread_pool_init() 152 if (nxt_fast_path(handler != NULL)) { in nxt_thread_pool_loop() 218 if (nxt_fast_path(link != NULL)) { in nxt_thread_pool_wait()
|
H A D | nxt_http_parse.c | 72 while (nxt_fast_path(end - p >= 10)) { in nxt_http_parse_target() 214 if (nxt_fast_path(ch == ' ')) { in nxt_http_parse_request_line() 420 if (nxt_fast_path(p[9] == '\r')) { in nxt_http_parse_request_line() 544 while (nxt_fast_path(end - p >= 8)) { in nxt_http_parse_field_name() 577 while (nxt_fast_path(p != end)) { in nxt_http_parse_field_name() 596 if (nxt_fast_path(*p == ':')) { in nxt_http_parse_field_name() 686 if (nxt_fast_path(p != start)) { in nxt_http_parse_field_value() 709 while (nxt_fast_path(end - p >= 16)) { in nxt_http_lookup_field_end() 742 while (nxt_fast_path(end - p >= 4)) { in nxt_http_lookup_field_end() 781 if (nxt_fast_path(*p == '\r')) { in nxt_http_parse_field_end() [all …]
|
H A D | nxt_vector.c | 18 if (nxt_fast_path(vector != NULL)) { in nxt_vector_create() 36 if (nxt_fast_path(vector->start != NULL)) { in nxt_vector_init() 131 if (nxt_fast_path(item != NULL)) { in nxt_vector_zero_add()
|
H A D | nxt_buf_filter.c | 120 if (nxt_fast_path(ret == NXT_OK)) { in nxt_buf_filter() 134 if (nxt_fast_path(ret == NXT_OK)) { in nxt_buf_filter() 182 if (nxt_fast_path(b != NULL)) { in nxt_buf_filter_nobuf() 288 if (nxt_fast_path(ret == NXT_OK)) { in nxt_buf_filter_file_read() 304 if (nxt_fast_path(ret != NXT_ERROR)) { in nxt_buf_filter_file_read() 311 if (nxt_fast_path(f->run->filter_flush(f) != NXT_ERROR)) { in nxt_buf_filter_file_read() 315 } else if (nxt_fast_path(nxt_buf_filter_nobuf(f) == NXT_OK)) { in nxt_buf_filter_file_read()
|
H A D | nxt_mp.c | 209 if (nxt_fast_path(mp->tid == tid)) { in nxt_mp_thread_assert() 256 if (nxt_fast_path(mp != NULL)) { in nxt_mp_create() 422 if (nxt_fast_path(p != NULL)) { in nxt_mp_zalloc() 437 if (nxt_fast_path(nxt_is_power_of_two(alignment))) { in nxt_mp_align() 475 if (nxt_fast_path(p != NULL)) { in nxt_mp_zalign() 562 if (nxt_fast_path(page != NULL)) { in nxt_mp_alloc_small() 580 if (nxt_fast_path(page != NULL)) { in nxt_mp_alloc_small() 795 if (nxt_fast_path(block != NULL)) { in nxt_mp_free() 800 if (nxt_fast_path(err == NULL)) { in nxt_mp_free() 804 } else if (nxt_fast_path(p == block->start)) { in nxt_mp_free() [all …]
|
H A D | nxt_http_source.c | 99 if (nxt_fast_path(stream->out != NULL)) { in nxt_http_source_handler() 117 if (nxt_fast_path(len >= src->len)) { in nxt_http_source_copy() 158 if (nxt_fast_path(ret == NXT_OK)) { in nxt_http_source_request_create() 162 if (nxt_fast_path(hs->u.request.copy.len == 0)) { in nxt_http_source_request_create() 210 if (nxt_fast_path(ret == NXT_OK)) { in nxt_http_source_status_filter() 295 if (nxt_fast_path(ret == NXT_DONE)) { in nxt_http_source_header_filter() 301 if (nxt_fast_path(ret == NXT_AGAIN)) { in nxt_http_source_header_filter() 399 if (nxt_fast_path(length > 0)) { in nxt_http_source_content_length() 443 if (nxt_fast_path(nxt_buf_pool_available(&us->buffers))) { in nxt_http_source_header_ready()
|
H A D | nxt_job_cache_file.c | 18 if (nxt_fast_path(jbc != NULL)) { in nxt_job_cache_file_create()
|
H A D | nxt_fd_event.c | 45 if (nxt_fast_path(ret == NXT_OK)) { in nxt_fd_event_hash_add() 66 if (nxt_fast_path(ret == NXT_OK)) { in nxt_fd_event_hash_get()
|
H A D | nxt_list.c | 17 if (nxt_fast_path(list != NULL)) { in nxt_list_create() 70 if (nxt_fast_path(p != NULL)) { in nxt_list_zero_add()
|
H A D | nxt_service.c | 70 if (nxt_fast_path(services != NULL)) { in nxt_services_init() 121 if (nxt_fast_path(s != NULL)) { in nxt_service_add()
|
H A D | nxt_buf_pool.c | 40 if (nxt_fast_path(b != NULL)) { in nxt_buf_pool_mem_alloc() 80 if (nxt_fast_path(b != NULL)) { in nxt_buf_pool_file_alloc() 120 if (nxt_fast_path(b != NULL)) { in nxt_buf_pool_mmap_alloc()
|
H A D | nxt_lvlhsh.c | 187 if (nxt_fast_path(slot != NULL)) { in nxt_lvlhsh_find() 272 if (nxt_fast_path(lh->slot != NULL)) { in nxt_lvlhsh_insert() 294 if (nxt_fast_path(bucket != NULL)) { in nxt_lvlhsh_new_bucket() 337 if (nxt_fast_path(ret == NXT_OK)) { in nxt_lvlhsh_level_insert() 434 if (nxt_fast_path(proto->shift[nlvl] != 0)) { in nxt_lvlhsh_bucket_insert() 438 if (nxt_fast_path(ret == NXT_OK)) { in nxt_lvlhsh_bucket_insert() 529 if (nxt_fast_path(ret == NXT_OK)) { in nxt_lvlhsh_level_convertion_insert() 567 if (nxt_fast_path(e < nxt_lvlhsh_bucket_end(proto, bucket))) { in nxt_lvlhsh_bucket_convertion_insert() 584 if (nxt_fast_path(proto->shift[nlvl] != 0)) { in nxt_lvlhsh_bucket_convertion_insert() 588 if (nxt_fast_path(ret == NXT_OK)) { in nxt_lvlhsh_bucket_convertion_insert() [all …]
|