Home
last modified time | relevance | path

Searched refs:__predict_false (Results 1 – 25 of 33) sorted by relevance

12

/aosp12/bionic/libc/bionic/
H A Dmalloc_common.cpp68 if (__predict_false(dispatch_table != nullptr)) { in calloc()
72 if (__predict_false(result == nullptr)) { in calloc()
81 if (__predict_false(dispatch_table != nullptr)) { in free()
90 if (__predict_false(dispatch_table != nullptr)) { in mallinfo()
98 if (__predict_false(dispatch_table != nullptr)) { in malloc_info()
115 if (__predict_false(dispatch_table != nullptr)) { in mallopt()
129 if (__predict_false(result == nullptr)) { in malloc()
151 if (__predict_false(result == nullptr)) { in memalign()
177 if (__predict_false(result == nullptr)) { in aligned_alloc()
214 if (__predict_false(result == nullptr)) { in pvalloc()
[all …]
H A Dmalloc_limit.cpp98 if (__predict_false(__builtin_add_overflow( in CheckLimit()
107 if (__predict_false(mem == nullptr)) { in IncrementLimit()
122 if (__predict_false(dispatch_table != nullptr)) { in LimitCalloc()
131 if (__predict_false(dispatch_table != nullptr)) { in LimitFree()
143 if (__predict_false(dispatch_table != nullptr)) { in LimitMalloc()
156 if (__predict_false(dispatch_table != nullptr)) { in LimitMemalign()
170 if (__predict_false(dispatch_table != nullptr)) { in LimitPosixMemalign()
175 if (__predict_false(retval != 0)) { in LimitPosixMemalign()
189 if (__predict_false(dispatch_table != nullptr)) { in LimitAlignedAlloc()
208 if (__predict_false(dispatch_table != nullptr)) { in LimitRealloc()
[all …]
H A Dgwp_asan_wrappers.cpp111 if (__predict_false(GuardedAlloc.shouldSample())) { in gwp_asan_calloc()
123 if (__predict_false(GuardedAlloc.pointerIsMine(mem))) { in gwp_asan_free()
131 if (__predict_false(GuardedAlloc.shouldSample())) { in gwp_asan_malloc()
140 if (__predict_false(GuardedAlloc.pointerIsMine(mem))) { in gwp_asan_malloc_usable_size()
147 if (__predict_false(GuardedAlloc.pointerIsMine(old_mem))) { in gwp_asan_realloc()
159 if (__predict_false(GuardedAlloc.pointerIsMine(reinterpret_cast<void*>(base)))) { in gwp_asan_malloc_iterate()
H A Dfortify.cpp103 if (__predict_false(__size_mul_overflow(size, count, &total))) { in __fread_chk()
113 if (__predict_false(__size_mul_overflow(size, count, &total))) { in __fwrite_chk()
258 if (__predict_false(s_copy_len >= src_len)) { in __stpncpy_chk2()
283 if (__predict_false(s_len == 0)) { in __strchr_chk()
318 if (__predict_false(ret >= s_len)) { in __strlen_chk()
338 if (__predict_false(dst_buf_size == 0)) { in __strncat_chk()
369 if (__predict_false(s_copy_len >= src_len)) { in __strncpy_chk2()
401 if (__predict_false((mode & 0777) != mode)) { in __umask_chk()
470 if (__predict_false(dst_buf_size == 0)) { in __STRCAT_CHK()
H A Dpthread_key.cpp144 if (__predict_false(!KeyInValidRange(key))) { in pthread_key_delete()
160 if (__predict_false(!KeyInValidRange(key))) { in pthread_getspecific()
179 if (__predict_false(!KeyInValidRange(key))) { in pthread_setspecific()
H A Dpthread_mutex.cpp770 if (__predict_false(!atomic_compare_exchange_weak_explicit(&mutex->state, in MutexLockWithTimeout()
836 if (__predict_false(IsMutexDestroyed(old_state))) { in pthread_mutex_lock()
865 if (__predict_false(IsMutexDestroyed(old_state))) { in pthread_mutex_unlock()
914 if (__predict_false(IsMutexDestroyed(old_state))) { in pthread_mutex_trylock()
977 if (__predict_false(IsMutexDestroyed(old_state))) { in __pthread_mutex_timedlock()
1013 if (__predict_false(IsMutexDestroyed(old_state))) { in pthread_mutex_destroy()
H A Dfdsan.cpp64 if (__predict_false(!local_overflow)) { in at()
182 if (__predict_false((type & 0xff) != type)) { in android_fdsan_create_owner_tag()
H A Dmalloc_tagged_pointers.h90 if (__predict_false(ptr == nullptr)) { in MaybeUntagAndCheckPointer()
/aosp12/bionic/libc/private/
H A Dbionic_fdtrack.h51 if (__fd != -1 && __predict_false(__android_fdtrack_hook) && \
52 !__predict_false(__get_thread()->is_vforked())) { \
55 if (!__predict_false(tls.fdtrack_disabled) && \
56 !__predict_false(__android_fdtrack_globally_disabled)) { \
82 if (__fd != -1 && __predict_false(__android_fdtrack_hook) && \
83 !__predict_false(__get_thread()->is_vforked())) { \
85 if (!__predict_false(tls.fdtrack_disabled) && \
86 !__predict_false(__android_fdtrack_globally_disabled)) { \
H A Dbionic_fortify.h55 if (__predict_false(fd < 0)) { in __check_fd_set()
58 if (__predict_false(fd >= FD_SETSIZE)) { in __check_fd_set()
61 if (__predict_false(set_size < sizeof(fd_set))) { in __check_fd_set()
68 if (__predict_false(pollfd_array_length < fd_count)) { in __check_pollfd_array()
75 if (__predict_false(value > SSIZE_MAX)) { in __check_count()
82 if (__predict_false(claim > actual)) { in __check_buffer_access()
H A Dbionic_futex.h46 if (__predict_false(result == -1)) { in __futex()
/aosp12/system/logging/liblog/include/log/
H A Dlog_radio.h39 #ifndef __predict_false
40 #define __predict_false(exp) __builtin_expect((exp) != 0, 0) macro
67 ((__predict_false(cond)) \
85 ((__predict_false(cond)) \
102 ((__predict_false(cond)) \
119 ((__predict_false(cond)) \
136 ((__predict_false(cond)) \
H A Dlog_system.h37 #ifndef __predict_false
38 #define __predict_false(exp) __builtin_expect((exp) != 0, 0) macro
65 ((__predict_false(cond)) \
83 ((__predict_false(cond)) \
100 ((__predict_false(cond)) \
117 ((__predict_false(cond)) \
134 ((__predict_false(cond)) \
H A Dlog_main.h78 #ifndef __predict_false
79 #define __predict_false(exp) __builtin_expect((exp) != 0, 0) macro
135 ((__predict_false(cond)) ? (__FAKE_USE_VA_ARGS(__VA_ARGS__), \
217 ((__predict_false(cond)) \
232 ((__predict_false(cond)) \
246 ((__predict_false(cond)) \
260 ((__predict_false(cond)) \
274 ((__predict_false(cond)) \
/aosp12/system/logging/liblog/include_vndk/log/
H A Dlog_radio.h39 #ifndef __predict_false
40 #define __predict_false(exp) __builtin_expect((exp) != 0, 0) macro
67 ((__predict_false(cond)) \
85 ((__predict_false(cond)) \
102 ((__predict_false(cond)) \
119 ((__predict_false(cond)) \
136 ((__predict_false(cond)) \
H A Dlog_system.h37 #ifndef __predict_false
38 #define __predict_false(exp) __builtin_expect((exp) != 0, 0) macro
65 ((__predict_false(cond)) \
83 ((__predict_false(cond)) \
100 ((__predict_false(cond)) \
117 ((__predict_false(cond)) \
134 ((__predict_false(cond)) \
H A Dlog_main.h78 #ifndef __predict_false
79 #define __predict_false(exp) __builtin_expect((exp) != 0, 0) macro
135 ((__predict_false(cond)) ? (__FAKE_USE_VA_ARGS(__VA_ARGS__), \
217 ((__predict_false(cond)) \
232 ((__predict_false(cond)) \
246 ((__predict_false(cond)) \
260 ((__predict_false(cond)) \
274 ((__predict_false(cond)) \
/aosp12/bionic/libc/upstream-netbsd/lib/libc/stdlib/
H A Dreallocarr.c79 if (__predict_false((number|size) >= SQRT_SIZE_MAX && in __weak_alias()
86 if (__predict_false(nptr == NULL)) { in __weak_alias()
/aosp12/bionic/linker/
H A Dlinker_memory.cpp65 if (__predict_false(fallback_tid) && __predict_false(gettid() == fallback_tid)) { in get_allocator()
H A Dlinker_relocate.h64 } else if (__predict_false(ELF_ST_BIND(s->st_info) != STB_LOCAL)) { in is_symbol_global_and_defined()
H A Dlinker_reloc_iterators.h80 if (__predict_false(group_flags & RELOCATION_GROUP_HAS_ADDEND_FLAG)) { in for_all_packed_relocs()
/aosp12/system/core/llkd/
H A Dlibllkd.cpp138 if (__predict_false(fd < 0)) return false; in fill()
765 if (__predict_false(dp->d_type != DT_DIR)) { in getValidTidDir()
766 if (__predict_false(dp->d_type == DT_UNKNOWN)) { // can't b/c procfs in getValidTidDir()
791 if (__predict_false(pos == std::string::npos)) { in getSchedValue()
939 if (__predict_false(!llkSkipName(name))) { in llkThread()
979 if (__predict_false(!llkTopDirectory)) { in llkCheck()
982 if (__predict_false(!llkTopDirectory)) { in llkCheck()
1014 if (__predict_false(!taskDirectory)) { in llkCheck()
1254 if (__predict_false(tids.empty())) { in llkCheck()
/aosp12/bionic/libc/system_properties/
H A Dsystem_properties.cpp151 if (__predict_false(SERIAL_DIRTY(serial))) { in ReadMutablePropertyValue()
243 if (__predict_false(!pa)) { in Update()
/aosp12/system/memory/lmkd/
H A Dliblmkd_utils.cpp103 if (__predict_false(written >= (int)sizeof(buf))) { in create_memcg()
/aosp12/system/logging/logd/
H A DChattyLogBuffer.cpp39 #ifndef __predict_false
40 #define __predict_false(exp) __builtin_expect((exp) != 0, 0) macro
350 if (__predict_false(caller_uid != AID_ROOT)) { // unlikely in Prune()

12