Searched refs:unlikely (Results 1 – 20 of 20) sorted by relevance
| /system/public/zircon/ |
| A D | time.h | 24 if (unlikely(add_overflow(time, duration, &x))) { in zx_time_add_duration() 36 if (unlikely(sub_overflow(time, duration, &x))) { in zx_time_sub_duration() 49 if (unlikely(sub_overflow(time1, time2, &x))) { in zx_time_sub_time() 62 if (unlikely(add_overflow(dur1, dur2, &x))) { in zx_duration_add_duration() 75 if (unlikely(sub_overflow(dur1, dur2, &x))) { in zx_duration_sub_duration() 88 if (unlikely(mul_overflow(duration, multiplier, &x))) { in zx_duration_mul_int64()
|
| A D | assert.h | 39 if (unlikely(!(x))) { \ 46 if (unlikely(!(x))) { \ 62 if (ZX_DEBUG_ASSERT_IMPLEMENTED && unlikely(!(x))) { \ 69 if (ZX_DEBUG_ASSERT_IMPLEMENTED && unlikely(!(x))) { \
|
| A D | compiler.h | 14 #define unlikely(x) __builtin_expect(!!(x), 0) macro
|
| /system/ulib/inet6/ |
| A D | inet6.c | 298 if (unlikely(len < UDP_HDR_LEN)) { in _udp6_recv() 302 if (unlikely(udp->checksum == 0)) { in _udp6_recv() 310 if (unlikely(sum != 0xFFFF)) { in _udp6_recv() 316 if (unlikely(n < UDP_HDR_LEN)) { in _udp6_recv() 320 if (unlikely(n > len)) { in _udp6_recv() 335 if (unlikely(icmp->checksum == 0)) { in icmp6_recv() 343 if (unlikely(sum != 0xFFFF)) { in icmp6_recv() 356 if (unlikely(len < sizeof(ndp_n_hdr_t))) { in icmp6_recv() 360 if (unlikely(ndp->code != 0)) { in icmp6_recv() 460 if (unlikely((ip->ver_tc_flow & 0xF0) != 0x60)) { in eth_recv() [all …]
|
| /system/ulib/trace-engine/ |
| A D | context.cpp | 113 if (unlikely(num_bytes > TRACE_ENCODED_RECORD_MAX_LENGTH)) in AllocRecord() 148 if (unlikely(!IsOtherRollingBufferReady(buffer_number))) { in AllocRecord() 202 if (unlikely(buffer_offset > MaxUsableBufferOffset())) { in StreamingBufferFullCheck() 223 if (unlikely(tracing_artificially_stopped_)) { in SwitchRollingBuffer() 297 if (unlikely(index > TRACE_ENCODED_THREAD_REF_MAX_INDEX)) { in AllocThreadIndex() 309 if (unlikely(index > TRACE_ENCODED_STRING_REF_MAX_INDEX)) { in AllocStringIndex()
|
| A D | context_api.cpp | 48 if (unlikely(koid == ZX_KOID_INVALID)) { in GetCurrentProcessKoid() 56 if (unlikely(tls_thread_koid == ZX_KOID_INVALID)) { in GetCurrentThreadKoid() 158 if (unlikely(cache->generation > generation)) in GetCurrentContextCache() 174 if (unlikely(!cache)) in CacheStringEntry() 182 if (unlikely(count == ContextCache::kMaxStringEntries)) in CacheStringEntry() 195 if (unlikely(!cache)) in CacheThreadEntry() 203 if (unlikely(count == ContextCache::kMaxThreadEntries)) in CacheThreadEntry() 459 if (unlikely(length > TRACE_ENCODED_STRING_REF_MAX_LENGTH)) in WriteStringRecord() 504 if (unlikely(!string_literal || !*string_literal)) { in RegisterString() 1110 if (unlikely(!trace::WriteStringRecord(context, false, index, in trace_context_write_string_record() [all …]
|
| A D | engine.cpp | 272 if (unlikely(enabled)) { in add_to_site_cache() 289 if (unlikely(!state_ptr->compare_exchange_strong(current_state, new_state, in add_to_site_cache() 669 if (unlikely(count == 0u)) in trace_acquire_context() 760 if (unlikely(previous == kBufferCounterIncrement)) { in trace_release_context() 802 if (unlikely(previous == kProlongedCounterIncrement)) { in trace_release_prolonged_context()
|
| /system/ulib/zircon/ |
| A D | zx_cprng_draw.cpp | 15 if (unlikely(status != ZX_OK)) { in _zx_cprng_draw()
|
| A D | zx_channel_call.cpp | 14 while (unlikely(status == ZX_ERR_INTERNAL_INTR_RETRY)) { in _zx_channel_call()
|
| /system/uapp/trace-benchmark/ |
| A D | benchmarks.cpp | 80 if (unlikely(context)) in RunBenchmarks() 88 if (unlikely(context)) in RunBenchmarks()
|
| /system/ulib/trace/include/trace/internal/ |
| A D | event_internal.h | 84 if (unlikely(TRACE_INTERNAL_CONTEXT)) { \ 114 if (unlikely(TRACE_INTERNAL_CONTEXT)) { \ 273 if (unlikely(TRACE_INTERNAL_CONTEXT)) { \
|
| /system/ulib/gfx/ |
| A D | gfx.c | 132 if (unlikely(x >= surface->width)) in gfx_fillrect() 154 if (unlikely(x >= surface->width)) in gfx_putpixel() 202 if (unlikely(ch > 127)) { in MKPUTCHAR() 205 if (unlikely(x > (surface->width - font->width))) { in MKPUTCHAR() 208 if (unlikely(y > (surface->height - font->height))) { in MKPUTCHAR() 370 if (unlikely(x1 >= surface->width)) in gfx_line() 372 if (unlikely(x2 >= surface->width)) in gfx_line()
|
| /system/ulib/runtime/ |
| A D | thread.c | 242 if (unlikely(ret != ZX_OK)) { in zxr_thread_detach() 243 if (unlikely(ret != ZX_ERR_INVALID_ARGS)) { in zxr_thread_detach()
|
| /system/ulib/perftest/ |
| A D | runner.cpp | 62 if (unlikely(next_idx_ >= end_of_run_idx_)) { in NextStep() 72 if (unlikely(next_idx_ != end_of_run_idx_)) { in KeepRunning() 104 if (unlikely(next_idx_ == timestamps_size_ - 1)) { in KeepRunning()
|
| /system/dev/ethernet/ethertap/ |
| A D | ethertap.cpp | 21 if (unlikely(options_ & ETHERTAP_OPT_TRACE)) \ 158 if (unlikely(options_ & ETHERTAP_OPT_TRACE_PACKETS)) { in EthmacQueueTx() 322 if (unlikely(options_ & ETHERTAP_OPT_TRACE_PACKETS)) { in Recv()
|
| /system/ulib/trace-vthread/include/trace-vthread/internal/ |
| A D | event_vthread.h | 19 if (unlikely(__trace_vthread_context)) { \
|
| /system/ulib/syslog/ |
| A D | fx_logger.cpp | 24 if (unlikely(tls_thread_koid == ZX_KOID_INVALID)) { in GetCurrentThreadKoid()
|
| /system/dev/input/hidctl/ |
| A D | hidctl.cpp | 271 if (unlikely(driver_get_log_flags() & DDK_LOG_TRACE)) { in Recv()
|
| /system/dev/misc/cpu-trace/ |
| A D | intel-pt.c | 247 if (unlikely(curr_idx >= IPT_TOPA_MAX_TABLE_ENTRIES - 2)) { in make_topa()
|
| /system/ulib/fdio/ |
| A D | unistd.c | 357 if (unlikely((i) + 1 >= PATH_MAX)) { \
|
Completed in 50 milliseconds