Home
last modified time | relevance | path

Searched refs:__predict_true (Results 1 – 11 of 11) sorted by relevance

/bionic/libc/bionic/
Dgetpid.cpp38 if (__predict_true(self)) { in getpid()
41 if (__predict_true(self->get_cached_pid(&cached_pid))) { in getpid()
Dgettid.cpp35 if (__predict_true(self)) { in gettid()
37 if (__predict_true(tid != -1)) { in gettid()
Dpthread_mutex.cpp246 if (__predict_true(attr == NULL)) { in pthread_mutex_init()
281 if (__predict_true(atomic_compare_exchange_strong_explicit(&mutex->state, &old_state, in __pthread_normal_mutex_trylock()
304 if (__predict_true(__pthread_normal_mutex_trylock(mutex, shared) == 0)) { in __pthread_normal_mutex_lock()
429 if ( __predict_true(mtype == MUTEX_TYPE_BITS_NORMAL) ) { in __pthread_mutex_lock_with_timeout()
451 if (__predict_true(atomic_compare_exchange_strong_explicit(&mutex->state, &old_state, in __pthread_mutex_lock_with_timeout()
468 if (__predict_true(atomic_compare_exchange_weak_explicit(&mutex->state, in __pthread_mutex_lock_with_timeout()
519 if (__predict_true(mtype == MUTEX_TYPE_BITS_NORMAL)) { in pthread_mutex_lock()
520 if (__predict_true(__pthread_normal_mutex_trylock(mutex, shared) == 0)) { in pthread_mutex_lock()
544 if (__predict_true(mtype == MUTEX_TYPE_BITS_NORMAL)) { in pthread_mutex_unlock()
591 if (__predict_true(mtype == MUTEX_TYPE_BITS_NORMAL)) { in pthread_mutex_trylock()
[all …]
Dpthread_once.cpp57 if (__predict_true(old_value == ONCE_INITIALIZATION_COMPLETE)) { in pthread_once()
Dpthread_rwlock.cpp275 …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()
351 while (__predict_true(__can_acquire_write_lock(old_state))) { in __pthread_rwlock_trywrlock()
352 if (__predict_true(atomic_compare_exchange_weak_explicit(&rwlock->state, &old_state, in __pthread_rwlock_trywrlock()
415 if (__predict_true(__pthread_rwlock_tryrdlock(rwlock) == 0)) { in pthread_rwlock_rdlock()
434 if (__predict_true(__pthread_rwlock_trywrlock(rwlock) == 0)) { in pthread_rwlock_wrlock()
Dvdso.cpp36 if (__predict_true(vdso_clock_gettime)) { in clock_gettime()
45 if (__predict_true(vdso_gettimeofday)) { in gettimeofday()
Dpthread_key.cpp160 if (__predict_true(SeqOfKeyInUse(seq) && data->seq == seq)) { in pthread_getspecific()
175 if (__predict_true(SeqOfKeyInUse(seq))) { in pthread_setspecific()
Dpthread_internal.h130 if (__predict_true(tls)) { in __get_thread()
Dpthread_create.cpp106 if (__predict_true((thread->attr.flags & PTHREAD_ATTR_FLAG_DETACHED) == 0)) { in __init_thread()
/bionic/libc/private/
Dbionic_lock.h55 return __predict_true(atomic_compare_exchange_strong_explicit(&state, &old_state, in trylock()
61 if (__predict_true(atomic_compare_exchange_strong_explicit(&state, &old_state, in lock()
/bionic/libc/include/sys/
Dcdefs.h178 #define __predict_true(exp) __builtin_expect((exp) != 0, 1) macro