Home
last modified time | relevance | path

Searched refs:nxt_fast_path (Results 1 – 25 of 83) sorted by relevance

1234

/unit/src/
H A Dnxt_file_name.c56 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 Dnxt_malloc.c37 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 Dnxt_parse.c24 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 Dnxt_http_chunk_parse.c109 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 Dnxt_thread_mutex.c138 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 Dnxt_spinlock.c73 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 Dnxt_thread_cond.c46 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 Dnxt_file.c118 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()
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()
519 if (nxt_fast_path(fp != NULL)) { in nxt_file_fopen()
[all …]
H A Dnxt_mem_map.c18 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 Dnxt_semaphore.c64 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 Dnxt_list.h57 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 Dnxt_socket.c83 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 Dnxt_http_parse.c70 while (nxt_fast_path(end - p >= 10)) { in nxt_http_parse_target()
212 if (nxt_fast_path(ch == ' ')) { in nxt_http_parse_request_line()
419 if (nxt_fast_path(*p == '\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 Dnxt_thread_pool.c65 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 Dnxt_fs.c65 if (nxt_fast_path(ptr != NULL)) { in nxt_fs_mkdir_parent()
79 if (nxt_fast_path(mkdir((const char *) dir, mode) == 0)) { in nxt_fs_mkdir()
H A Dnxt_vector.c18 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 Dnxt_mp.c209 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 Dnxt_fd_event.c45 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 Dnxt_list.c17 if (nxt_fast_path(list != NULL)) { in nxt_list_create()
70 if (nxt_fast_path(p != NULL)) { in nxt_list_zero_add()
H A Dnxt_job_cache_file.c18 if (nxt_fast_path(jbc != NULL)) { in nxt_job_cache_file_create()
H A Dnxt_lvlhsh.c187 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 …]
H A Dnxt_buf_pool.c40 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 Dnxt_service.c70 if (nxt_fast_path(services != NULL)) { in nxt_services_init()
121 if (nxt_fast_path(s != NULL)) { in nxt_service_add()
H A Dnxt_pcre.c61 if (nxt_fast_path(re->code != NULL)) { in nxt_regex_compile()
110 if (nxt_fast_path(match != NULL)) { in nxt_regex_match_create()
H A Dnxt_signal.c138 if (nxt_fast_path(link != NULL)) { in nxt_signal_thread_start()
171 if (nxt_fast_path(err == 0)) { in nxt_signal_thread()

1234