Home
last modified time | relevance | path

Searched refs:unlikely (Results 1 – 25 of 491) sorted by relevance

12345678910>>...20

/freebsd/contrib/jemalloc/include/jemalloc/internal/
H A Dtcache_inlines.h36 if (unlikely(ticker_tick(&tcache->gc_ticker))) { in tcache_event()
53 if (unlikely(!tcache_success)) { in tcache_alloc_small()
56 if (unlikely(arena == NULL)) { in tcache_alloc_small()
72 if (config_prof || (slow_path && config_fill) || unlikely(zero)) { in tcache_alloc_small()
79 if (unlikely(opt_junk_alloc)) { in tcache_alloc_small()
82 } else if (unlikely(opt_zero)) { in tcache_alloc_small()
87 if (slow_path && config_fill && unlikely(opt_junk_alloc)) { in tcache_alloc_small()
114 if (unlikely(!tcache_success)) { in tcache_alloc_large()
120 if (unlikely(arena == NULL)) { in tcache_alloc_large()
133 unlikely(zero)) { in tcache_alloc_large()
[all …]
H A Dprof_inlines_b.h25 if (unlikely(tdata == NULL)) { in prof_tdata_get()
30 } else if (unlikely(tdata->expired)) { in prof_tdata_get()
114 if (unlikely((uintptr_t)tdata <= (uintptr_t)PROF_TDATA_STATE_MAX)) { in prof_sample_accum_update()
122 if (unlikely(tdata == NULL)) { in prof_sample_accum_update()
172 if (unlikely((uintptr_t)tctx > (uintptr_t)1U)) { in prof_malloc()
208 if (unlikely(sampled)) { in prof_realloc()
213 } else if (unlikely(old_sampled)) { in prof_realloc()
233 if (unlikely(old_sampled)) { in prof_realloc()
245 if (unlikely((uintptr_t)tctx > (uintptr_t)1U)) { in prof_free()
H A Darena_inlines_b.h27 if (unlikely(size >= oversize_threshold)) { in arena_choose_maybe_huge()
45 if (unlikely(!extent_slab_get(extent))) { in arena_prof_tctx_get()
49 if (unlikely(!alloc_ctx->slab)) { in arena_prof_tctx_get()
65 if (unlikely(!extent_slab_get(extent))) { in arena_prof_tctx_set()
69 if (unlikely(!alloc_ctx->slab)) { in arena_prof_tctx_set()
117 if (unlikely(tsdn_null(tsdn))) { in arena_decay_ticks()
122 if (unlikely(decay_ticker == NULL)) { in arena_decay_ticks()
125 if (unlikely(ticker_ticks(decay_ticker, nticks))) { in arena_decay_ticks()
233 if (config_prof && unlikely(szind < SC_NBINS)) { in arena_dalloc_large_no_tcache()
273 if (config_prof && unlikely(szind < SC_NBINS)) { in arena_dalloc_large()
[all …]
H A Dassert.h10 if (unlikely(config_debug && !(e))) { \
43 if (unlikely(config_debug && !(e))) { \
52 if (unlikely(!(c))) { \
/freebsd/sys/dev/mlx5/mlx5_en/
H A Dmlx5_en_tx.c186 if (unlikely(mb->m_len < ETHER_HDR_LEN)) { in mlx5e_get_l2_header_size()
189 if (unlikely(mb->m_len < (ETHER_HDR_LEN + ETHER_VLAN_ENCAP_LEN))) in mlx5e_get_l2_header_size()
248 if (unlikely(mb->m_len < ETHER_HDR_LEN)) in mlx5e_get_full_header_size()
251 if (unlikely(mb->m_len < ETHER_HDR_LEN + ETHER_VLAN_ENCAP_LEN)) in mlx5e_get_full_header_size()
263 if (unlikely(mb->m_len < eth_hdr_len + sizeof(*ip))) in mlx5e_get_full_header_size()
281 if (unlikely(mb->m_len < eth_hdr_len + sizeof(*ip6))) in mlx5e_get_full_header_size()
299 if (unlikely(mb->m_len < eth_hdr_len + sizeof(*th))) { in mlx5e_get_full_header_size()
301 if (unlikely(mb->m_len != eth_hdr_len || in mlx5e_get_full_header_size()
316 if (unlikely(mb->m_pkthdr.len < eth_hdr_len)) in mlx5e_get_full_header_size()
334 if (unlikely(m in mlx5e_parse_mbuf_chain()
[all...]
/freebsd/sys/contrib/ena-com/
H A Dena_eth_com.c87 if (unlikely(!io_sq->entries_in_tx_burst_left)) { in ena_com_write_bounce_buffer_to_dev()
113 if (unlikely((io_sq->tail & (io_sq->q_depth - 1)) == 0)) in ena_com_write_bounce_buffer_to_dev()
128 if (unlikely(io_sq->mem_queue_type == ENA_ADMIN_PLACEMENT_POLICY_HOST)) in ena_com_write_header_to_bounce()
134 if (unlikely((header_offset + header_len) > llq_info->desc_list_entry_size)) { in ena_com_write_header_to_bounce()
140 if (unlikely(!bounce_buffer)) { in ena_com_write_header_to_bounce()
159 if (unlikely(!bounce_buffer)) { in get_sq_desc_llq()
178 if (unlikely(io_sq->mem_queue_type == ENA_ADMIN_PLACEMENT_POLICY_HOST)) in ena_com_close_bounce_buffer()
185 if (unlikely(rc)) { in ena_com_close_bounce_buffer()
219 if (unlikely(rc)) { in ena_com_sq_update_llq_tail()
231 if (unlikely(llq_info->desc_stride_ctrl == ENA_ADMIN_SINGLE_DESC_PER_ENTRY)) in ena_com_sq_update_llq_tail()
[all …]
H A Dena_com.c118 if (unlikely((addr & GENMASK_ULL(ena_dev->dma_addr_bits - 1, 0)) != addr)) { in ena_com_mem_addr_set()
138 if (unlikely(!sq->entries)) { in ena_com_admin_init_sq()
161 if (unlikely(!cq->entries)) { in ena_com_admin_init_cq()
186 if (unlikely(!aenq->entries)) { in ena_com_admin_init_aenq()
207 if (unlikely(!aenq_handlers)) { in ena_com_admin_init_aenq()
228 if (unlikely(command_id >= admin_queue->q_depth)) { in get_comp_ctxt()
235 if (unlikely(!admin_queue->comp_ctx)) { in get_comp_ctxt()
241 if (unlikely(admin_queue->comp_ctx[command_id].occupied && capture)) { in get_comp_ctxt()
272 if (unlikely(cnt >= admin_queue->q_depth)) { in __ena_com_submit_admin_cmd()
287 if (unlikely(!comp_ctx)) in __ena_com_submit_admin_cmd()
[all …]
/freebsd/sys/dev/drm2/ttm/
H A Dttm_bo_vm.c89 if (unlikely(best_bo == NULL)) in ttm_bo_vm_lookup_rb()
92 if (unlikely((best_bo->vm_node->start + best_bo->num_pages) < in ttm_bo_vm_lookup_rb()
123 if (unlikely(ret != 0)) { in ttm_bo_vm_fault()
171 if (unlikely(ret != 0)) { in ttm_bo_vm_fault()
179 if (unlikely(ret != 0)) { in ttm_bo_vm_fault()
184 if (unlikely(ret != 0)) { in ttm_bo_vm_fault()
222 if (unlikely(!m)) { in ttm_bo_vm_fault()
329 if (unlikely(bo == NULL)) { in ttm_bo_mmap_single()
335 if (unlikely(!driver->verify_access)) { in ttm_bo_mmap_single()
340 if (unlikely(ret != 0)) in ttm_bo_mmap_single()
[all …]
/freebsd/sys/contrib/openzfs/include/os/linux/spl/sys/
H A Ddebug.h100 #define unlikely(expr) expect((expr) != 0, 0) macro
107 (void) (unlikely(!(cond)) && \
112 if (unlikely(!(cond))) \
120 if (unlikely(!(_verify3_left OP _verify3_right))) \
131 if (unlikely(!(_verify3_left OP _verify3_right))) \
142 if (unlikely(!(_verify3_left OP _verify3_right))) \
153 if (unlikely(!(_verify3_left OP _verify3_right))) \
163 if (unlikely(!(0 == _verify0_right))) \
172 if (unlikely(!(0 == _verify0_right))) \
190 if (unlikely(!(_verify3_left OP _verify3_right))) \
[all …]
/freebsd/sys/contrib/openzfs/include/os/freebsd/spl/sys/
H A Ddebug.h103 (void) (unlikely(!(cond)) && \
108 if (unlikely(!(cond))) \
116 if (unlikely(!(_verify3_left OP _verify3_right))) \
127 if (unlikely(!(_verify3_left OP _verify3_right))) \
138 if (unlikely(!(_verify3_left OP _verify3_right))) \
149 if (unlikely(!(_verify3_left OP _verify3_right))) \
159 if (unlikely(!(0 == _verify0_right))) \
168 if (unlikely(!(0 == _verify0_right))) \
186 if (unlikely(!(_verify3_left OP _verify3_right))) \
198 if (unlikely(!(_verify3_left OP _verify3_right))) \
[all …]
/freebsd/sys/dev/ena/
H A Dena_rss.c108 if (unlikely(rc != 0)) { in ena_rss_init_default()
121 if (unlikely((rc != 0) && (rc != EOPNOTSUPP))) { in ena_rss_init_default()
139 if (unlikely((rc != 0) && (rc != EOPNOTSUPP))) { in ena_rss_init_default()
145 if (unlikely((rc != 0) && (rc != EOPNOTSUPP))) { in ena_rss_init_default()
169 if (unlikely((rc != 0) && (rc != EOPNOTSUPP))) { in ena_rss_configure()
180 if (unlikely((rc != 0) && (rc != EOPNOTSUPP))) in ena_rss_configure()
185 if (unlikely((rc != 0) && (rc != EOPNOTSUPP))) in ena_rss_configure()
190 if (unlikely((rc != 0) && (rc != EOPNOTSUPP))) in ena_rss_configure()
205 if (unlikely(dc == NULL)) { in ena_rss_init_default_deferred()
216 if (unlikely(rc != 0)) { in ena_rss_init_default_deferred()
H A Dena.c218 if (unlikely(dma_space_addr == 0)) in ena_dma_alloc()
233 if (unlikely(error != 0)) { in ena_dma_alloc()
239 if (unlikely(error != 0)) { in ena_dma_alloc()
247 if (unlikely(error != 0)) { in ena_dma_alloc()
256 if (unlikely((error != 0) || (dma->paddr == 0))) { in ena_dma_alloc()
574 if (unlikely(tx_req_id_rc != 0)) { in validate_tx_req_id()
653 if (unlikely(tx_ring->tx_buffer_info == NULL)) in ena_setup_tx_resources()
658 if (unlikely(tx_ring->free_tx_ids == NULL)) in ena_setup_tx_resources()
664 if (unlikely(tx_ring->push_buf_intermediate_buf == NULL)) in ena_setup_tx_resources()
688 if (unlikely(err != 0)) { in ena_setup_tx_resources()
[all …]
H A Dena_datapath.c92 if (unlikely(((if_getdrvflags(ifp) & IFF_DRV_RUNNING) == 0) || in ena_cleanup()
105 if (unlikely(((if_getdrvflags(ifp) & IFF_DRV_RUNNING) == 0) || in ena_cleanup()
146 if (unlikely((if_getdrvflags(adapter->ifp) & IFF_DRV_RUNNING) == 0)) in ena_mq_start()
171 if (unlikely(ret != 0)) { in ena_mq_start()
214 if (unlikely(rc == ENA_COM_TRY_AGAIN)) in ena_get_tx_req_id()
219 if (unlikely(tx_ring->tx_buffer_info[*req_id].mbuf == NULL)) { in ena_get_tx_req_id()
271 if (unlikely(rc != 0)) in ena_tx_cleanup()
296 if (unlikely(--commit == 0)) { in ena_tx_cleanup()
327 if (unlikely(!tx_ring->running && above_thresh)) { in ena_tx_cleanup()
436 if (unlikely(rx_info->mbuf == NULL)) { in ena_rx_mbuf()
[all …]
/freebsd/sys/dev/qat/qat_common/
H A Dadf_pfvf_vf_proto.c188 if (unlikely(type != ADF_PF2VF_BLKMSG_RESP_TYPE_DATA)) { in adf_vf2pf_blkmsg_get_byte()
218 if (unlikely(type != ADF_PF2VF_BLKMSG_RESP_TYPE_CRC)) { in adf_vf2pf_blkmsg_get_crc()
258 if (unlikely(type > ADF_VF2PF_LARGE_BLOCK_TYPE_MAX)) { in adf_send_vf2pf_blkmsg_req()
265 if (unlikely(*buffer_len < ADF_PFVF_BLKMSG_HEADER_SIZE)) { in adf_send_vf2pf_blkmsg_req()
275 if (unlikely(ret)) in adf_send_vf2pf_blkmsg_req()
278 if (unlikely(!buffer[ADF_PFVF_BLKMSG_VER_BYTE])) { in adf_send_vf2pf_blkmsg_req()
289 if (unlikely(ret)) in adf_send_vf2pf_blkmsg_req()
292 if (unlikely(!buffer[ADF_PFVF_BLKMSG_LEN_BYTE])) { in adf_send_vf2pf_blkmsg_req()
316 if (unlikely(ret)) in adf_send_vf2pf_blkmsg_req()
321 if (unlikely(ret)) in adf_send_vf2pf_blkmsg_req()
[all …]
/freebsd/sys/contrib/openzfs/module/zfs/
H A Dlz4.c194 #ifndef unlikely
195 #define unlikely(expr) expect((expr) != 0, 0) macro
503 if (initial_check && unlikely((*ip) >= lencheck)) { /* overflow detection */ in read_variable_length()
511 if (loop_check && unlikely((*ip) >= lencheck)) { /* overflow detection */ in read_variable_length()
573 if ((endOnInput) && (unlikely(outputSize==0))) { in LZ4_decompress_generic()
578 if ((!endOnInput) && (unlikely(outputSize==0))) { return (*ip==0 ? 1 : -1); } in LZ4_decompress_generic()
579 if ((endOnInput) && unlikely(srcSize==0)) { return -1; } in LZ4_decompress_generic()
603 …if ((safeDecode) && unlikely((uptrval)(op)+length<(uptrval)(op))) { goto _output_error; } /* overf… in LZ4_decompress_generic()
604 …if ((safeDecode) && unlikely((uptrval)(ip)+length<(uptrval)(ip))) { goto _output_error; } /* overf… in LZ4_decompress_generic()
645 …if ((checkOffset) && (unlikely(match + dictSize < lowPrefix))) { goto _output_error; } /* Error : … in LZ4_decompress_generic()
[all …]
/freebsd/contrib/ofed/libmlx5/
H A Dqp.c77 if (unlikely(!(*size))) in copy_to_scat()
99 if (unlikely(qp->wq_sig)) in mlx5_copy_to_recv_wqe()
139 if (unlikely((void *)(scat + max) > qp->sq.qend)) { in mlx5_copy_to_send_wqe()
251 if (unlikely(src == qp->sq.qend)) in mlx5_bf_copy()
290 if (unlikely(inl > qp->max_inline_data)) in set_data_inl_seg()
293 if (unlikely(wqe + len > qend)) { in set_data_inl_seg()
368 if (unlikely(wr->num_sge < 1)) { in copy_eth_inline_headers()
389 if (unlikely(inl_hdr_size)) { in copy_eth_inline_headers()
402 if (unlikely(wr->sg_list[j].length == inl_hdr_copy_size)) { in copy_eth_inline_headers()
545 if (unlikely((*seg == qend))) in set_bind_wr()
[all …]
/freebsd/contrib/arm-optimized-routines/math/aarch64/experimental/
H A Datan2_2u5.c52 if (unlikely (isnan (y) && !xisnan)) in atan2()
54 if (unlikely (xisnan)) in atan2()
79 if (unlikely (iax == 0 || exp_diff <= -POW8_EXP_UFLOW_BOUND)) in atan2()
84 if (unlikely (iax == 0x7ff0000000000000 in atan2()
132 if (unlikely (m < 2 && exp_diff >= POW8_EXP_UFLOW_BOUND)) in atan2()
H A Datan2f_3u.c31 if (unlikely (ex == 0)) in biased_exponent()
72 if (unlikely (iay == 0 || (exp_diff >= POLY_UFLOW_BOUND && m >= 2))) in atan2f()
88 if (unlikely (iax == 0 || exp_diff <= -POLY_UFLOW_BOUND)) in atan2f()
140 if (unlikely (m < 2 && exp_diff >= POLY_UFLOW_BOUND)) in atan2f()
/freebsd/contrib/llvm-project/libcxx/include/__format/
H A Dunicode.h168 if (__last_ - __first_ < 2 || !__unicode::__is_continuation(__first_ + 1, 1)) [[unlikely]] in __consume()
176 if (__value < 0x0080) [[unlikely]] in __consume()
183 if (__last_ - __first_ < 3 || !__unicode::__is_continuation(__first_ + 1, 2)) [[unlikely]] in __consume()
193 if (__value < 0x0800) [[unlikely]] in __consume()
197 if (__unicode::__is_surrogate(__value)) [[unlikely]] in __consume()
204 if (__last_ - __first_ < 4 || !__unicode::__is_continuation(__first_ + 1, 3)) [[unlikely]] in __consume()
216 if (__value < 0x10000) [[unlikely]] in __consume()
220 if (!__unicode::__is_code_point(__value)) [[unlikely]] in __consume()
268 if (__unicode::__is_low_surrogate(__value)) [[unlikely]] in __consume()
272 …first_ == __last_ || !__unicode::__is_low_surrogate(static_cast<char32_t>(*__first_))) [[unlikely]] in __consume()
[all …]
/freebsd/contrib/jemalloc/src/
H A Djemalloc.c181 if (unlikely(opt_utrace)) { \
219 if (unlikely(malloc_init_state == malloc_init_uninitialized)) { in malloc_init_a0()
227 if (unlikely(!malloc_initialized()) && malloc_init_hard()) { in malloc_init()
240 if (unlikely(malloc_init_a0())) { in a0ialloc()
271 if (unlikely(size == 0)) { in bootstrap_malloc()
283 if (unlikely(num_size == 0)) { in bootstrap_calloc()
293 if (unlikely(ptr == NULL)) { in bootstrap_free()
1948 if (unlikely(dopts->alignment != 0)) { in imalloc_no_sample()
1978 if (unlikely(ret == NULL)) { in imalloc_sample()
2012 if (unlikely(*size == 0)) { in compute_size_with_overflow()
[all …]
/freebsd/contrib/arm-optimized-routines/math/aarch64/
H A Dtanpif_3u1.c47 if (unlikely (xabs_12 >= 0x4b1)) in arm_math_tanpif()
50 if (unlikely (xabs_12 == 0x7f8)) in arm_math_tanpif()
62 if (unlikely (xabs_12 < 0x300)) in arm_math_tanpif()
68 if (unlikely (rounded == x)) in arm_math_tanpif()
H A Dtanpi_2u5.c62 if (unlikely (xabs_12 >= 0x434)) in arm_math_tanpi()
65 if (unlikely (xabs_12 == 0x7ff)) in arm_math_tanpi()
77 if (unlikely (rounded == x)) in arm_math_tanpi()
100 if (unlikely (xabs_12 < 0x3c0)) in arm_math_tanpi()
/freebsd/contrib/arm-optimized-routines/math/aarch64/advsimd/
H A Dcoshf.c55 if (unlikely (v_any_u32 (special))) in V_NAME_F1()
61 if (unlikely (v_any_u32 (tiny))) in V_NAME_F1()
74 if (unlikely (v_any_u32 (tiny))) in V_NAME_F1()
77 if (unlikely (v_any_u32 (special))) in V_NAME_F1()
H A Dfinite_pow.h149 if (unlikely (abstop - SmallExp >= ThresExp)) in exp_inline()
190 if (unlikely (abstop == 0)) in exp_inline()
205 if (unlikely (abstop - SmallExp >= ThresExp)) in exp_nosignbias()
237 if (unlikely (abstop == 0)) in exp_nosignbias()
280 if (unlikely (topx - SmallPowX >= ThresPowX in pow_scalar_special_case()
287 if (unlikely (zeroinfnan (iy))) in pow_scalar_special_case()
302 if (unlikely (zeroinfnan (ix))) in pow_scalar_special_case()
/freebsd/sys/compat/linuxkpi/common/include/linux/
H A Dkernel.h102 unlikely(__ret); \
117 unlikely(__ret); \
212 if (unlikely(!__log_once)) { \
251 if (unlikely(__ret_warn_on)) \
253 unlikely(__ret_warn_on); \
260 if (unlikely(__ret_warn_on)) \
262 unlikely(__ret_warn_on); \

12345678910>>...20