Searched refs:new_state (Results 1 - 3 of 3) sorted by relevance

/bionic/libc/upstream-netbsd/common/lib/libc/stdlib/
H A Drandom.c411 int *new_state; local
418 new_state = (int *)(void *)arg_state;
419 type = (int)(new_state[0] % MAX_TYPES);
420 rear = (int)(new_state[0] / MAX_TYPES);
441 state = (int *) (new_state + 1);
/bionic/libc/bionic/
H A Dpthread_rwlock.cpp277 int new_state = old_state + STATE_READER_COUNT_CHANGE_STEP; local
278 if (__predict_false(!__state_owned_by_readers(new_state))) { // Happens when reader count overflows.
281 if (__predict_true(atomic_compare_exchange_weak_explicit(&rwlock->state, &old_state, new_state,
H A Dpthread_mutex.cpp477 int new_state = MUTEX_STATE_BITS_FLIP_CONTENTION(old_state); local
479 &old_state, new_state,
484 old_state = new_state;

Completed in 124 milliseconds