Home
last modified time | relevance | path

Searched refs:UNLIKELY (Results 1 – 25 of 76) sorted by relevance

1234

/external/compiler-rt/lib/sanitizer_common/tests/
Dsanitizer_allocator_testlib.cc76 if (UNLIKELY(!thread_inited)) in malloc()
84 if (UNLIKELY(!thread_inited)) in free()
91 if (UNLIKELY(!thread_inited)) in calloc()
101 if (UNLIKELY(!thread_inited)) in realloc()
114 if (UNLIKELY(!thread_inited)) in memalign()
122 if (UNLIKELY(!thread_inited)) in posix_memalign()
130 if (UNLIKELY(!thread_inited)) in valloc()
/external/valgrind/VEX/priv/
Dhost_s390_defs.c1504 if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM)) in s390_emit_AR()
1514 if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM)) in s390_emit_AGR()
1524 if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM)) in s390_emit_A()
1534 if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM)) in s390_emit_AY()
1544 if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM)) in s390_emit_AG()
1556 if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM)) in s390_emit_AFI()
1568 if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM)) in s390_emit_AGFI()
1578 if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM)) in s390_emit_AH()
1588 if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM)) in s390_emit_AHY()
1598 if (UNLIKELY(vex_traceflags & VEX_TRACE_ASM)) in s390_emit_AHI()
[all …]
Dhost_generic_maddf.c144 if (UNLIKELY (u.ieee.exponent + v.ieee.exponent in h_generic_calc_MAddF64()
146 || UNLIKELY (u.ieee.exponent >= 0x7ff - DBL_MANT_DIG) in h_generic_calc_MAddF64()
147 || UNLIKELY (v.ieee.exponent >= 0x7ff - DBL_MANT_DIG) in h_generic_calc_MAddF64()
148 || UNLIKELY (w.ieee.exponent >= 0x7ff - DBL_MANT_DIG) in h_generic_calc_MAddF64()
149 || UNLIKELY (u.ieee.exponent + v.ieee.exponent in h_generic_calc_MAddF64()
253 if (UNLIKELY (adjust < 0)) { in h_generic_calc_MAddF64()
Dmain_util.h48 # define UNLIKELY(x) (x) macro
52 # define UNLIKELY(x) __builtin_expect(!!(x), 0) macro
/external/libchrome/base/trace_event/
Dheap_profiler.h45 if (UNLIKELY(AllocationContextTracker::capture_mode() != in HeapProfilerScopedTaskExecutionTracker()
54 if (UNLIKELY(AllocationContextTracker::capture_mode() != in ~HeapProfilerScopedTaskExecutionTracker()
69 if (UNLIKELY( in HeapProfilerScopedIgnore()
78 if (UNLIKELY( in ~HeapProfilerScopedIgnore()
/external/valgrind/coregrind/
Dm_stacks.c295 if (UNLIKELY(stackseg == NULL)) { in VG_()
304 if (UNLIKELY((!stackseg->hasR || !stackseg->hasW) in VG_()
316 if (UNLIKELY(*start < stackseg->start)) { in VG_()
327 if (UNLIKELY(stackseg->kind == SkResvn)) { in VG_()
342 if (UNLIKELY(*end > stackseg->end)) { in VG_()
352 if (UNLIKELY(*start > *end)) { in VG_()
409 if (UNLIKELY(current_stack == NULL || \
428 if (UNLIKELY(delta < -VG_(clo_max_stackframe) \
Dm_poolalloc.c122 if (UNLIKELY(pa->nextFree == NULL)) { in VG_()
/external/compiler-rt/lib/asan/
Dasan_malloc_linux.cc48 if (UNLIKELY(IsInDlsymAllocPool(ptr))) in INTERCEPTOR()
55 if (UNLIKELY(IsInDlsymAllocPool(ptr))) in INTERCEPTOR()
61 if (UNLIKELY(!asan_inited)) in INTERCEPTOR()
69 if (UNLIKELY(!asan_inited)) in INTERCEPTOR()
78 if (UNLIKELY(IsInDlsymAllocPool(ptr))) { in INTERCEPTOR()
Dasan_interceptors.cc158 if (SANITIZER_MAC && UNLIKELY(!asan_inited)) \
396 if (UNLIKELY(!asan_inited)) return internal_memcpy(to, from, size); \
418 if (UNLIKELY(!asan_inited)) return internal_memset(block, c, size); \
434 if (UNLIKELY(!asan_inited)) \
536 if (UNLIKELY(!asan_inited)) return REAL(strcpy)(to, from); // NOLINT in INTERCEPTOR()
556 if (UNLIKELY(!asan_inited)) return internal_strdup(s); in INTERCEPTOR()
572 if (UNLIKELY(!asan_inited)) return internal_strdup(s); in INTERCEPTOR()
627 if (UNLIKELY(!asan_inited)) return REAL(atoi)(nptr); in INTERCEPTOR()
648 if (UNLIKELY(!asan_inited)) return REAL(atol)(nptr); in INTERCEPTOR()
700 if (UNLIKELY(!asan_inited)) return REAL(__cxa_atexit)(func, arg, dso_handle); in INTERCEPTOR()
Dasan_interceptors.h117 if (UNLIKELY(!asan_inited)) { \
Dasan_rtl.cc164 if (UNLIKELY(s)) { \
165 if (UNLIKELY(size >= SHADOW_GRANULARITY || \
/external/libchrome/base/
Dcompiler_specific.h187 #if !defined(UNLIKELY)
189 #define UNLIKELY(x) __builtin_expect(!!(x), 0) macro
191 #define UNLIKELY(x) (x) macro
/external/python/cpython2/Modules/_ctypes/libffi/src/
Dprep_cif.c41 if (UNLIKELY(arg == NULL || arg->elements == NULL)) in initialize_aggregate()
49 if (UNLIKELY(ptr == 0)) in initialize_aggregate()
54 if (UNLIKELY(((*ptr)->size == 0) in initialize_aggregate()
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_internal_defs.h140 # define UNLIKELY(x) (x) macro
153 # define UNLIKELY(x) __builtin_expect(!!(x), 0) macro
206 if (UNLIKELY(!(expr))) { \
218 if (UNLIKELY(!(v1 op v2))) \
/external/libvpx/libvpx/vp9/encoder/x86/
Dvp9_diamond_search_sad_avx.c23 #define UNLIKELY(v) __builtin_expect(v, 0) macro
26 #define UNLIKELY(v) (v) macro
259 if (UNLIKELY(local_best_sad == 0xffff)) { in vp9_diamond_search_sad_avx()
303 if (UNLIKELY(best_address == in_what)) { in vp9_diamond_search_sad_avx()
/external/valgrind/helgrind/
Dlibhb_core.c1047 if (UNLIKELY(free_lineF)) { in clear_LineF_of_Z()
1333 && UNLIKELY(tree[7] == SVal_INVALID || tree[6] == SVal_INVALID in normalise_tree()
1668 if (UNLIKELY(ga_ix == N_WAY_NENT)) in shmem__invalidate_scache_range()
2312 if (UNLIKELY(here->thrid >= me_thrid)) in VTS__tick()
2337 if (UNLIKELY(here->tym >= (1ULL << SCALARTS_N_TYMBITS) - 2ULL)) { in VTS__tick()
2595 if (UNLIKELY(i == useda)) { in VTS__cmp_structural()
3602 while (UNLIKELY(!VG_IS_8_ALIGNED(a)) && LIKELY(len > 0)) { in Filter__clear_range_SLOW()
3614 while (UNLIKELY(len > 0)) { in Filter__clear_range_SLOW()
3662 if (UNLIKELY(!VG_IS_8_ALIGNED(c))) { in Filter__clear_range()
3711 if (UNLIKELY(address_in_range(fi->tags[clineno], c, full_len))) { in Filter__clear_range()
[all …]
/external/compiler-rt/lib/scudo/
Dscudo_allocator.cpp318 if (UNLIKELY(!ThreadInited)) in allocate()
378 if (UNLIKELY(!ThreadInited)) in deallocate()
432 if (UNLIKELY(!ThreadInited)) in getUsableSize()
466 if (UNLIKELY(!ThreadInited)) in reallocate()
506 if (UNLIKELY(!ThreadInited)) in calloc()
/external/valgrind/drd/
Ddrd_load_store.c538 if (UNLIKELY(DRD_(any_address_is_traced)())) { in instrument_store()
669 if (UNLIKELY(DRD_(any_address_is_traced)())) { in DRD_()
684 if (UNLIKELY(DRD_(any_address_is_traced)())) { in DRD_()
753 if (UNLIKELY(DRD_(any_address_is_traced)())) in DRD_()
774 if (UNLIKELY(DRD_(any_address_is_traced)())) in DRD_()
Ddrd_main.c349 if (UNLIKELY(DRD_(any_address_is_traced)())) in drd_start_using_mem()
354 if (UNLIKELY(DRD_(running_thread_inside_pthread_create)())) in drd_start_using_mem()
382 if (UNLIKELY(DRD_(any_address_is_traced)())) in drd_stop_using_mem()
/external/compiler-rt/lib/esan/
Desan_interceptors.cpp60 if (UNLIKELY(COMMON_INTERCEPTOR_NOTHING_IS_INITIALIZED)) { \
61 if (!UNLIKELY(EsanDuringInit)) \
344 if (UNLIKELY(REAL(mmap) == nullptr)) { in INTERCEPTOR()
/external/valgrind/memcheck/
Dmc_main.c649 if (UNLIKELY(is_distinguished_sm(*p))) in get_secmap_for_writing_low()
657 if (UNLIKELY(is_distinguished_sm(*p))) in get_secmap_for_writing_high()
1846 if (UNLIKELY( MC_(clo_mc_level) == 3 )) in MC_()
1862 if (UNLIKELY( MC_(clo_mc_level) == 3 )) in MC_()
1899 if (UNLIKELY( MC_(clo_mc_level) == 3 )) in MC_()
1922 if (UNLIKELY(MC_(clo_mc_level) >= 3)) { in make_mem_defined_if_addressable()
1939 if (UNLIKELY(MC_(clo_mc_level) >= 3)) { in make_mem_defined_if_noaccess()
2547 if (UNLIKELY(0 == (ocacheL1_event_ctr++ in find_OCacheLine_SLOW()
2674 if (UNLIKELY(a > MAX_PRIMARY_ADDRESS)) { in make_aligned_word32_undefined()
2717 if (UNLIKELY(a > MAX_PRIMARY_ADDRESS)) { in make_aligned_word32_noaccess()
[all …]
/external/valgrind/include/
Dpub_tool_basics.h448 # define UNLIKELY(x) __builtin_expect(!!(x), 0) macro
451 # define UNLIKELY(x) (x) macro
/external/python/cpython2/Objects/
Dobmalloc.c36 # define UNLIKELY(value) __builtin_expect((value), 0) macro
38 # define UNLIKELY(value) (value) macro
798 if (UNLIKELY(running_on_valgrind == -1)) in PyObject_Malloc()
800 if (UNLIKELY(running_on_valgrind)) in PyObject_Malloc()
1008 if (UNLIKELY(running_on_valgrind > 0)) in PyObject_Free()
1248 if (UNLIKELY(running_on_valgrind > 0)) in PyObject_Realloc()
/external/python/cpython2/Modules/_ctypes/libffi/include/
Dffi_common.h126 #define UNLIKELY(x) __builtin_expect((x)!=0,0) macro
/external/compiler-rt/lib/tsan/rtl/
Dtsan_platform_mac.cc51 if (UNLIKELY(val == nullptr)) { in SignalSafeGetOrAllocate()

1234