Searched refs:__predict_true (Results 1 – 8 of 8) sorted by relevance
/bionic/libc/bionic/ |
D | getpid.cpp | 40 if (__predict_true(self->get_cached_pid(&cached_pid))) { in getpid()
|
D | pthread_mutex.cpp | 243 if (__predict_true(attr == NULL)) { in pthread_mutex_init() 278 if (__predict_true(atomic_compare_exchange_strong_explicit(&mutex->state, &old_state, in __pthread_normal_mutex_trylock() 301 if (__predict_true(__pthread_normal_mutex_trylock(mutex, shared) == 0)) { in __pthread_normal_mutex_lock() 426 if ( __predict_true(mtype == MUTEX_TYPE_BITS_NORMAL) ) { in __pthread_mutex_lock_with_timeout() 448 if (__predict_true(atomic_compare_exchange_strong_explicit(&mutex->state, &old_state, in __pthread_mutex_lock_with_timeout() 465 if (__predict_true(atomic_compare_exchange_weak_explicit(&mutex->state, in __pthread_mutex_lock_with_timeout() 516 if (__predict_true(mtype == MUTEX_TYPE_BITS_NORMAL)) { in pthread_mutex_lock() 517 if (__predict_true(__pthread_normal_mutex_trylock(mutex, shared) == 0)) { in pthread_mutex_lock() 538 if (__predict_true(mtype == MUTEX_TYPE_BITS_NORMAL)) { in pthread_mutex_unlock() 585 if (__predict_true(mtype == MUTEX_TYPE_BITS_NORMAL)) { in pthread_mutex_trylock() [all …]
|
D | pthread_once.cpp | 57 if (__predict_true(old_value == ONCE_INITIALIZATION_COMPLETE)) { in pthread_once()
|
D | pthread_rwlock.cpp | 275 …while (__predict_true(__can_acquire_read_lock(old_state, rwlock->writer_nonrecursive_preferred))) { in __pthread_rwlock_tryrdlock() 281 if (__predict_true(atomic_compare_exchange_weak_explicit(&rwlock->state, &old_state, new_state, in __pthread_rwlock_tryrdlock() 357 while (__predict_true(__can_acquire_write_lock(old_state))) { in __pthread_rwlock_trywrlock() 358 if (__predict_true(atomic_compare_exchange_weak_explicit(&rwlock->state, &old_state, in __pthread_rwlock_trywrlock() 427 if (__predict_true(__pthread_rwlock_tryrdlock(rwlock) == 0)) { in pthread_rwlock_rdlock() 446 if (__predict_true(__pthread_rwlock_trywrlock(rwlock) == 0)) { in pthread_rwlock_wrlock()
|
D | pthread_key.cpp | 160 if (__predict_true(SeqOfKeyInUse(seq) && data->seq == seq)) { in pthread_getspecific() 175 if (__predict_true(SeqOfKeyInUse(seq))) { in pthread_setspecific()
|
D | pthread_create.cpp | 96 if (__predict_true((thread->attr.flags & PTHREAD_ATTR_FLAG_DETACHED) == 0)) { in __init_thread()
|
/bionic/libc/private/ |
D | bionic_lock.h | 56 if (__predict_true(atomic_compare_exchange_strong_explicit(&state, &old_state, in lock()
|
/bionic/libc/include/sys/ |
D | cdefs.h | 308 #define __predict_true(exp) __builtin_expect((exp) != 0, 1) macro 311 #define __predict_true(exp) (exp) macro
|