Home
last modified time | relevance | path

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

123

/external/libchrome/base/trace_event/
Dheap_profiler.h66 if (UNLIKELY(AllocationContextTracker::capture_mode() != in HeapProfilerScopedTaskExecutionTracker()
75 if (UNLIKELY(AllocationContextTracker::capture_mode() != in ~HeapProfilerScopedTaskExecutionTracker()
91 if (UNLIKELY(AllocationContextTracker::capture_mode() == in HeapProfilerScopedStackFrame()
100 if (UNLIKELY(AllocationContextTracker::capture_mode() == in ~HeapProfilerScopedStackFrame()
115 if (UNLIKELY( in HeapProfilerScopedIgnore()
124 if (UNLIKELY( in ~HeapProfilerScopedIgnore()
/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/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)) { \
/external/libchrome/base/sampling_heap_profiler/
Dsampling_heap_profiler.cc265 if (UNLIKELY(g_deterministic)) in GetNextSampleInterval()
281 if (UNLIKELY(value < min_value)) in GetNextSampleInterval()
283 if (UNLIKELY(value > max_value)) in GetNextSampleInterval()
292 if (UNLIKELY(!base::subtle::NoBarrier_Load(&g_running))) in RecordAlloc()
294 if (UNLIKELY(base::ThreadLocalStorage::HasBeenDestroyed())) in RecordAlloc()
378 if (UNLIKELY(address == nullptr)) in RecordFree()
380 if (UNLIKELY(sampled_addresses_set().Contains(address))) in RecordFree()
385 if (UNLIKELY(base::ThreadLocalStorage::HasBeenDestroyed())) in DoRecordFree()
/external/autotest/client/deps/glbench/src/
Dutils.h116 #if !defined(UNLIKELY)
118 #define UNLIKELY(x) __builtin_expect(!!(x), 0) macro
120 #define UNLIKELY(x) (x) macro
124 #define CHECK(condition) UNLIKELY(!(condition)) ? IMMEDIATE_CRASH() : (0)
/external/libchrome/base/
Dcompiler_specific.h205 #if !defined(UNLIKELY)
207 #define UNLIKELY(x) __builtin_expect(!!(x), 0) macro
209 #define UNLIKELY(x) (x) macro
/external/pdfium/third_party/base/
Dcompiler_specific.h209 #if !defined(UNLIKELY)
211 #define UNLIKELY(x) __builtin_expect(!!(x), 0) macro
213 #define UNLIKELY(x) (x) macro
/external/pdfium/third_party/base/allocator/partition_allocator/
Dpartition_alloc.cc388 if (UNLIKELY(!super_page)) in PartitionAllocPartitionPages()
435 if (UNLIKELY(isNewExtent)) { in PartitionAllocPartitionPages()
436 if (UNLIKELY(!current_extent)) { in PartitionAllocPartitionPages()
524 if (UNLIKELY(slots_limit < freelist_limit)) in PartitionPageAllocAndFillFreelist()
609 if (UNLIKELY(!bucket->num_full_pages)) in PartitionSetNewActivePage()
630 if (UNLIKELY(raw_size_ptr != nullptr)) in PartitionPageSetRawSize()
658 if (UNLIKELY(!ptr)) in PartitionDirectMap()
767 if (UNLIKELY(PartitionBucketIsDirectMapped(bucket))) { in PartitionAllocSlowPath()
800 if (UNLIKELY(!new_page) && in PartitionAllocSlowPath()
824 if (UNLIKELY(!new_page)) { in PartitionAllocSlowPath()
[all …]
Dpartition_alloc.h463 if (UNLIKELY(hook != nullptr)) in AllocationHookIfEnabled()
469 if (UNLIKELY(hook != nullptr)) in FreeHookIfEnabled()
480 if (UNLIKELY(allocation_hook && free_hook)) { in ReallocHookIfEnabled()
642 if (UNLIKELY(raw_size_ptr != nullptr)) in PartitionPageGetRawSize()
747 if (UNLIKELY(page->num_allocated_slots <= 0)) { in PartitionFreeWithPage()
820 if (UNLIKELY(!ptr)) in PartitionFreeGeneric()
Dspin_lock.cc79 } while (UNLIKELY(lock_.exchange(true, std::memory_order_acquire))); in LockSlow()
/external/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/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/libaom/libaom/aom_dsp/
Daom_dsp_common.h46 #define UNLIKELY(v) __builtin_expect(v, 0) macro
49 #define UNLIKELY(v) (v)
/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/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/swiftshader/third_party/llvm-7.0/llvm/test/Transforms/LowerExpectIntrinsic/
Dexpect_nonboolean.ll28 ; CHECK: br i1 %tmp2{{.*}}!prof [[UNLIKELY:![0-9]+]]
103 ; CHECK: [[UNLIKELY]] = !{!"branch_weights", i32 1, i32 2000}
/external/libchrome/libchrome_tools/patch/
Dcompiler_specific.patch1 # In Android, prefer Android's libbase definitions for LIKELY/UNLIKELY macros.
/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/libchrome/base/android/orderfile/
Dorderfile_instrumentation.cc128 if (UNLIKELY(address < start || address > end)) { in RecordAddress()
165 if (UNLIKELY(insertion_index >= kMaxElements)) { in RecordAddress()
/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/libffi/include/
Dffi_common.h126 #define UNLIKELY(x) __builtin_expect((x)!=0,0) macro

123