Searched refs:likely (Results 1 - 25 of 134) sorted by relevance

123456

/freebsd-13-stable/sys/contrib/dpdk_rte_lpm/
H A Drte_branch_prediction.h14 * Check if a branch is likely to be taken.
17 * likely to be taken. Example:
19 * if (likely(x > 1))
23 #ifndef likely
24 #define likely(x) __builtin_expect(!!(x), 1) macro
25 #endif /* likely */
/freebsd-13-stable/contrib/ofed/libcxgb4/
H A Dconfig.h4 #define likely(x) __predict_true(x) macro
/freebsd-13-stable/contrib/ofed/libmlx4/
H A Dconfig.h12 #define likely(x) __predict_true(x) macro
/freebsd-13-stable/sys/dev/ena/
H A Dena_netmap.h37 /* Undef (un)likely as they are defined in netmap_kern.h */
38 #ifdef likely
39 #undef likely macro
40 #endif /* likely */
/freebsd-13-stable/sys/contrib/alpine-hal/
H A Dal_hal_types.h70 #if !defined(likely)
71 #define likely(x) (__builtin_expect(!!(x), 1)) macro
/freebsd-13-stable/contrib/jemalloc/include/jemalloc/internal/
H A Dutil.h32 # define likely(x) __builtin_expect(!!(x), 1) macro
35 # define likely(x) !!(x) macro
H A Dtsd_malloc_thread_cleanup.h57 if (likely(&tsd_tls != val)) {
H A Dtsd_tls.h51 if (likely(&tsd_tls != val)) {
H A Darena_inlines_a.h28 if (likely(prof_interval == 0 || !prof_active_get_unlocked())) {
H A Darena_inlines_b.h163 if (likely(tcache != NULL)) {
164 if (likely(size <= SC_SMALL_MAXCLASS)) {
168 if (likely(size <= tcache_maxclass)) {
261 if (likely(slab)) {
318 if (likely(slab)) {
362 if (likely(slab)) {
418 if (likely(slab)) {
H A Djemalloc_internal_inlines_a.h50 /* This likely means a misconfig. */
78 if (likely(tdata != NULL) || !refresh_if_missing) {
130 if (likely(tsd_tcache_enabled_get(tsd))) {
H A Dprof_inlines_b.h93 if (likely(bytes_until_sample >= check)) {
108 if (likely(prof_sample_check(tsd, usize, update))) {
153 if (!prof_active || likely(prof_sample_accum_update(tsd, usize, update,
/freebsd-13-stable/tools/tools/netmap/
H A Dpkt_hash.h42 #define likely(x) __builtin_expect(!!(x), 1) macro
45 #define likely(x) (x) macro
/freebsd-13-stable/contrib/ofed/libmlx5/
H A Dconfig.h18 #define likely(x) __predict_true(x) macro
/freebsd-13-stable/sys/compat/linuxkpi/common/include/asm/
H A Datomic-long.h106 if (likely(atomic_fcmpset_long(&v->counter, &c, c + a)))
120 if (likely(atomic_fcmpset_long(&v->counter, &c, c + a)))
H A Datomic64.h99 if (likely(atomic_fcmpset_64(&v->counter, &c, c + a)))
113 if (likely(atomic_fcmpset_64(&v->counter, &c, c + a)))
H A Datomic.h115 if (likely(atomic_fcmpset_int(&v->counter, &c, c + a)))
129 if (likely(atomic_fcmpset_int(&v->counter, &c, c + a)))
282 if (likely(atomic_fcmpset_int(&v->counter, &old, retval)))
/freebsd-13-stable/sys/compat/linuxkpi/common/src/
H A Dlinux_xarray.c117 if (likely(*pindex != mask)) {
124 if (likely(gfp & M_WAITOK)) {
182 if (likely(gfp & M_WAITOK)) {
226 if (likely(gfp & M_WAITOK)) {
270 if (likely(gfp & M_WAITOK)) {
372 if (likely(found)) {
/freebsd-13-stable/sys/contrib/openzfs/include/os/freebsd/spl/sys/
H A Ddebug.h64 #define likely(expr) expect((expr) != 0, 1) macro
157 ((void)(likely((!(A)) || (B)) || \
161 ((void)(likely(!!(A) == !!(B)) || \
/freebsd-13-stable/sys/dev/mlx5/mlx5_core/
H A Dmlx5_cq.c74 if (likely(cqn < MLX5_CQ_LINEAR_ARRAY_SIZE))
82 if (likely(cq != NULL)) {
106 if (likely(cqn < MLX5_CQ_LINEAR_ARRAY_SIZE))
114 if (likely(cq != NULL)) {
144 if (likely(err == 0 && cq->cqn < MLX5_CQ_LINEAR_ARRAY_SIZE))
172 if (likely(cq->cqn < MLX5_CQ_LINEAR_ARRAY_SIZE))
/freebsd-13-stable/sys/contrib/openzfs/include/os/freebsd/linux/
H A Dcompiler.h72 #define likely(x) __builtin_expect(!!(x), 1) macro
/freebsd-13-stable/contrib/xz/src/liblzma/common/
H A Dcommon.h40 # define likely(expr) __builtin_expect(expr, true) macro
43 # define likely(expr) (expr) macro
/freebsd-13-stable/sys/contrib/openzfs/include/os/linux/spl/sys/
H A Ddebug.h157 ((void)(likely((!(A)) || (B)) || \
161 ((void)(likely(!!(A) == !!(B)) || \
/freebsd-13-stable/sys/compat/linuxkpi/common/include/linux/
H A Dcompiler.h71 #define likely(x) __builtin_expect(!!(x), 1) macro
/freebsd-13-stable/contrib/lua/src/
H A Dllimits.h155 #if !defined(likely)
158 #define likely(x) (__builtin_expect(((x) != 0), 1)) macro
161 #define likely(x) (x) macro

Completed in 233 milliseconds

123456