Searched refs:unlikely (Results 1 - 25 of 82) sorted by relevance

1234

/fuchsia/zircon/third_party/ulib/jemalloc/include/jemalloc/internal/
H A Dassert.h7 if (unlikely(config_debug && !(e))) { \
40 if (unlikely(config_debug && !(e))) \
H A Dtcache_inlines.h80 if (unlikely(tcache == NULL) && tsd_nominal(tsd)) {
94 if (unlikely(ticker_tick(&tcache->gc_ticker)))
103 if (unlikely(tbin->ncached == 0)) {
119 if (unlikely((int)tbin->ncached < tbin->low_water))
138 if (unlikely(!tcache_success)) {
141 if (unlikely(arena == NULL))
155 if (config_prof || (slow_path && config_fill) || unlikely(zero)) {
162 if (unlikely(opt_junk_alloc)) {
165 } else if (unlikely(opt_zero))
169 if (slow_path && config_fill && unlikely(opt_junk_allo
[all...]
H A Dutil_types.h74 # define unlikely(x) __builtin_expect(!!(x), 0) macro
77 # define unlikely(x) !!(x) macro
90 if (unlikely(!(c))) \
H A Dprof_inlines.h61 if (unlikely(tdata == NULL)) {
66 } else if (unlikely(tdata->expired)) {
114 if (unlikely((uintptr_t)tdata <= (uintptr_t)PROF_TDATA_STATE_MAX))
120 if (unlikely(tdata == NULL))
164 if (unlikely((uintptr_t)tctx > (uintptr_t)1U))
201 if (unlikely(sampled)) {
207 } else if (unlikely(old_sampled)) {
227 if (unlikely(old_sampled)) {
240 if (unlikely((uintptr_t)tctx > (uintptr_t)1U))
H A Darena_inlines_b.h39 if (unlikely(!extent_slab_get(extent)))
51 if (unlikely(!extent_slab_get(extent)))
72 if (unlikely(tsdn_null(tsdn)))
76 if (unlikely(decay_ticker == NULL))
78 if (unlikely(ticker_ticks(decay_ticker, nticks)))
156 if (config_prof && unlikely(usize <= SMALL_MAXCLASS)) {
188 if (config_prof && unlikely(size <= SMALL_MAXCLASS)) {
H A Dticker_inlines.h35 if (unlikely(ticker->tick < nticks)) {
/fuchsia/zircon/system/public/zircon/
H A Dtime.h24 if (unlikely(add_overflow(time, duration, &x))) {
36 if (unlikely(sub_overflow(time, duration, &x))) {
49 if (unlikely(sub_overflow(time1, time2, &x))) {
62 if (unlikely(add_overflow(dur1, dur2, &x))) {
75 if (unlikely(sub_overflow(dur1, dur2, &x))) {
88 if (unlikely(mul_overflow(duration, multiplier, &x))) {
H A Dassert.h39 if (unlikely(!(x))) { \
46 if (unlikely(!(x))) { \
62 if (ZX_DEBUG_ASSERT_IMPLEMENTED && unlikely(!(x))) { \
69 if (ZX_DEBUG_ASSERT_IMPLEMENTED && unlikely(!(x))) { \
/fuchsia/zircon/third_party/ulib/ngunwind/include/ngunwind/private/
H A Dcompiler.h39 #undef unlikely macro
54 # define unlikely(x) __builtin_expect ((x), 0) macro
68 # define unlikely(x) (x) macro
/fuchsia/zircon/third_party/uapp/dash/src/
H A Dshell.h98 #ifndef unlikely
99 #define unlikely(x) __builtin_expect(!!(x),0) macro
/fuchsia/zircon/kernel/lib/libc/include/
H A Dassert.h17 if (unlikely(!(x))) { \
24 if (unlikely(!(x))) { \
39 if (DEBUG_ASSERT_IMPLEMENTED && unlikely(!(x))) { \
46 if (DEBUG_ASSERT_IMPLEMENTED && unlikely(!(x))) { \
/fuchsia/zircon/system/ulib/zircon/
H A Dzx_cprng_draw.cpp15 if (unlikely(status != ZX_OK)) {
H A Dzx_channel_call.cpp14 while (unlikely(status == ZX_ERR_INTERNAL_INTR_RETRY)) {
/fuchsia/zircon/third_party/ulib/ngunwind/src/x86_64/
H A DGinit_local.c36 if (unlikely (!tdep_init_done))
/fuchsia/zircon/kernel/object/
H A Dmessage_packet.cpp48 if (unlikely(data_size > kMaxMessageSize || num_handles > kMaxMessageHandles)) {
57 if (unlikely(!chain)) {
80 if (unlikely(status != ZX_OK)) {
84 if (unlikely(status != ZX_OK)) {
96 if (unlikely(status != ZX_OK)) {
100 if (unlikely(status != ZX_OK)) {
H A Dsemaphore.cpp24 if (unlikely(++count_ <= 0))
40 if (unlikely(block)) {
/fuchsia/zircon/kernel/kernel/
H A Dmutex.cpp50 if (unlikely(mutex_val(m) != 0)) {
83 if (unlikely(ct == mutex_holder(m)))
94 if (unlikely(oldval == 0)) {
99 if (unlikely(!atomic_cmpxchg_u64(&m->val, &oldval, oldval | MUTEX_FLAG_QUEUED))) {
111 if (unlikely(ret < ZX_OK)) {
140 if (unlikely(ct->inherited_priority >= 0) && ct->mutexes_held == 0) {
164 if (unlikely(ct != mutex_holder(m))) {
/fuchsia/zircon/kernel/lib/heap/
H A Dheap_wrapper.cpp81 if (unlikely(next_unused_stat >= num_stats))
147 if (unlikely(heap_trace)) {
151 if (HEAP_PANIC_ON_ALLOC_FAIL && unlikely(!ptr)) {
166 if (unlikely(heap_trace)) {
170 if (HEAP_PANIC_ON_ALLOC_FAIL && unlikely(!ptr)) {
185 if (unlikely(heap_trace)) {
189 if (HEAP_PANIC_ON_ALLOC_FAIL && unlikely(!ptr)) {
209 if (unlikely(heap_trace)) {
223 if (unlikely(heap_trace)) {
227 if (HEAP_PANIC_ON_ALLOC_FAIL && unlikely(!ptr
[all...]
/fuchsia/zircon/kernel/target/pc/multiboot/
H A Dtrampoline.c34 if (unlikely(kernel_entry != kernel->data_kernel.entry)) {
38 if (unlikely(kernel_entry < (uintptr_t)PHYS_LOAD_ADDRESS ||
/fuchsia/zircon/kernel/arch/x86/
H A Dcache.cpp38 if (unlikely(!x86_feature_test(X86_FEATURE_CLFLUSH))) {
/fuchsia/zircon/third_party/ulib/jemalloc/src/
H A Dlarge.c26 if (unlikely(ausize == 0 || ausize > LARGE_MAXCLASS))
36 if (unlikely(arena == NULL) || (extent = arena_extent_alloc_large(tsdn,
48 if (zero || (config_fill && unlikely(opt_zero))) {
53 } else if (config_fill && unlikely(opt_junk_alloc)) {
84 if (config_fill && have_dss && unlikely(opt_junk_free)) {
121 if (config_fill && unlikely(opt_junk_free)) {
163 if (zero || (config_fill && unlikely(opt_zero))) {
184 } else if (config_fill && unlikely(opt_junk_alloc)) {
H A Djemalloc_cpp.cpp121 if (unlikely(ptr == nullptr)) {
129 if (unlikely(ptr == nullptr)) {
/fuchsia/zircon/kernel/platform/pc/
H A Dhpet.cpp119 if (unlikely(n >= num_timers)) {
153 if (unlikely(n >= num_timers)) {
173 if (unlikely(n >= num_timers)) {
180 if (unlikely(difference > (1ULL >> 63))) {
184 if (unlikely(difference < min_ticks_ahead)) {
197 if (unlikely(n >= num_timers)) {
/fuchsia/zircon/kernel/vm/include/vm/
H A Dvm_page_list.h50 if (unlikely(status != ZX_ERR_NEXT)) {
76 if (unlikely(status != ZX_ERR_NEXT)) {
117 if (unlikely(status != ZX_ERR_NEXT)) {
133 if (unlikely(status != ZX_ERR_NEXT)) {
157 if (unlikely(status != ZX_ERR_NEXT)) {
181 if (unlikely(status != ZX_ERR_NEXT)) {
/fuchsia/zircon/kernel/vm/
H A Dvm_object_physical.cpp98 if (unlikely(len == 0)) {
105 if (unlikely(!InRange(offset, len, size_))) {
115 if (unlikely(table_size > buffer_size)) {
134 if (unlikely(status != ZX_OK)) {
146 if (unlikely(len == 0)) {
151 if (unlikely(!InRange(offset, len, size_))) {

Completed in 192 milliseconds

1234