Home
last modified time | relevance | path

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

/bionic/libc/private/
Dbionic_fortify.h51 if (__predict_false(fd < 0)) { in __check_fd_set()
54 if (__predict_false(fd >= FD_SETSIZE)) { in __check_fd_set()
57 if (__predict_false(set_size < sizeof(fd_set))) { in __check_fd_set()
64 if (__predict_false(pollfd_array_length < fd_count)) { in __check_pollfd_array()
71 if (__predict_false(value > SSIZE_MAX)) { in __check_count()
78 if (__predict_false(claim > actual)) { in __check_buffer_access()
Dbionic_futex.h46 if (__predict_false(result == -1)) { in __futex()
/bionic/libc/bionic/
Dmalloc_common.cpp89 if (__predict_false(_calloc != nullptr)) { in calloc()
97 if (__predict_false(_free != nullptr)) { in free()
106 if (__predict_false(_mallinfo != nullptr)) { in mallinfo()
114 if (__predict_false(_mallopt != nullptr)) { in mallopt()
122 if (__predict_false(_malloc != nullptr)) { in malloc()
130 if (__predict_false(_malloc_usable_size != nullptr)) { in malloc_usable_size()
138 if (__predict_false(_memalign != nullptr)) { in memalign()
146 if (__predict_false(_posix_memalign != nullptr)) { in posix_memalign()
154 if (__predict_false(_aligned_alloc != nullptr)) { in aligned_alloc()
162 if (__predict_false(_realloc != nullptr)) { in realloc()
[all …]
Dpthread_key.cpp140 if (__predict_false(!KeyInValidRange(key))) { in pthread_key_delete()
156 if (__predict_false(!KeyInValidRange(key))) { in pthread_getspecific()
175 if (__predict_false(!KeyInValidRange(key))) { in pthread_setspecific()
Dfortify.cpp106 if (__predict_false(__size_mul_overflow(size, count, &total))) { in __fread_chk()
116 if (__predict_false(__size_mul_overflow(size, count, &total))) { in __fwrite_chk()
264 if (__predict_false(s_copy_len > src_len)) { in __stpncpy_chk2()
280 if (__predict_false(s_len == 0)) { in __strchr_chk()
315 if (__predict_false(ret >= s_len)) { in __strlen_chk()
335 if (__predict_false(dst_buf_size == 0)) { in __strncat_chk()
375 if (__predict_false(s_copy_len > src_len)) { in __strncpy_chk2()
398 if (__predict_false((mode & 0777) != mode)) { in __umask_chk()
462 if (__predict_false(dst_buf_size == 0)) { in __strcat_chk()
Dpthread_mutex.cpp760 if (__predict_false(!atomic_compare_exchange_weak_explicit(&mutex->state, in MutexLockWithTimeout()
826 if (__predict_false(IsMutexDestroyed(old_state))) { in pthread_mutex_lock()
855 if (__predict_false(IsMutexDestroyed(old_state))) { in pthread_mutex_unlock()
904 if (__predict_false(IsMutexDestroyed(old_state))) { in pthread_mutex_trylock()
967 if (__predict_false(IsMutexDestroyed(old_state))) { in __pthread_mutex_timedlock()
985 if (__predict_false(IsMutexDestroyed(old_state))) { in pthread_mutex_destroy()
Dpthread_rwlock.cpp231 if (__predict_false(attr != NULL)) { in pthread_rwlock_init()
278 …if (__predict_false(!__state_owned_by_readers(new_state))) { // Happens when reader count overflow… in __pthread_rwlock_tryrdlock()
/bionic/linker/
Dlinker_memory.cpp65 if (__predict_false(fallback_tid) && __predict_false(gettid() == fallback_tid)) { in get_allocator()
/bionic/libc/upstream-netbsd/lib/libc/stdlib/
Dreallocarr.c79 if (__predict_false((number|size) >= SQRT_SIZE_MAX && in __weak_alias()
86 if (__predict_false(nptr == NULL)) { in __weak_alias()
/bionic/libm/upstream-freebsd/lib/msun/src/
Ds_tanhl.c132 if (__predict_false(ix<BIAS-(LDBL_MANT_DIG+1)/2)) { /* |x|<TINY */ in tanhl()
/bionic/libc/include/sys/
Dcdefs.h154 #define __predict_false(exp) __builtin_expect((exp) != 0, 0) macro
/bionic/libc/stdio/
Dstdio.cpp132 if (__predict_false(fp->_lb._base != nullptr)) { in free_fgetln_buffer()