Home
last modified time | relevance | path

Searched refs:newval (Results 1 – 25 of 49) sorted by relevance

12

/libpthread/nptl/
A Dcancellation.c36 int newval = oldval | CANCELTYPE_BITMASK; in __pthread_enable_asynccancel() local
38 if (newval == oldval) in __pthread_enable_asynccancel()
41 int curval = THREAD_ATOMIC_CMPXCHG_VAL (self, cancelhandling, newval, in __pthread_enable_asynccancel()
45 if (CANCEL_ENABLED_AND_CANCELED_AND_ASYNCHRONOUS (newval)) in __pthread_enable_asynccancel()
72 int newval; in __pthread_disable_asynccancel() local
78 newval = oldval & ~CANCELTYPE_BITMASK; in __pthread_disable_asynccancel()
80 int curval = THREAD_ATOMIC_CMPXCHG_VAL (self, cancelhandling, newval, in __pthread_disable_asynccancel()
93 while (__builtin_expect ((newval & (CANCELING_BITMASK | CANCELED_BITMASK)) in __pthread_disable_asynccancel()
96 lll_futex_wait (&self->cancelhandling, newval, LLL_PRIVATE); in __pthread_disable_asynccancel()
97 newval = THREAD_GETMEM (self, cancelhandling); in __pthread_disable_asynccancel()
A Dpthread_cancel.c44 int newval; in pthread_cancel() local
49 newval = oldval | CANCELING_BITMASK | CANCELED_BITMASK; in pthread_cancel()
54 if (oldval == newval) in pthread_cancel()
60 if (CANCEL_ENABLED_AND_CANCELED_AND_ASYNCHRONOUS (newval)) in pthread_cancel()
90 while (atomic_compare_and_exchange_bool_acq (&pd->cancelhandling, newval, in pthread_cancel()
A Dpthread_setcancelstate.c40 int newval = (state == PTHREAD_CANCEL_DISABLE in __pthread_setcancelstate() local
52 if (oldval == newval) in __pthread_setcancelstate()
57 int curval = THREAD_ATOMIC_CMPXCHG_VAL (self, cancelhandling, newval, in __pthread_setcancelstate()
61 if (CANCEL_ENABLED_AND_CANCELED_AND_ASYNCHRONOUS (newval)) in __pthread_setcancelstate()
A Dpthread_setcanceltype.c40 int newval = (type == PTHREAD_CANCEL_ASYNCHRONOUS in __pthread_setcanceltype() local
52 if (oldval == newval) in __pthread_setcanceltype()
57 int curval = THREAD_ATOMIC_CMPXCHG_VAL (self, cancelhandling, newval, in __pthread_setcanceltype()
61 if (CANCEL_ENABLED_AND_CANCELED_AND_ASYNCHRONOUS (newval)) in __pthread_setcanceltype()
/libpthread/nptl/sysdeps/unix/sysv/linux/
A Dlowlevelrobustlock.c41 int newval = oldval | FUTEX_WAITERS; in __lll_robust_lock_wait() local
42 if (oldval != newval in __lll_robust_lock_wait()
43 && atomic_compare_and_exchange_bool_acq (futex, newval, oldval)) in __lll_robust_lock_wait()
46 lll_futex_wait (futex, newval, private); in __lll_robust_lock_wait()
98 int newval = oldval | FUTEX_WAITERS; in __lll_robust_timedlock_wait() local
99 if (oldval != newval in __lll_robust_timedlock_wait()
100 && atomic_compare_and_exchange_bool_acq (futex, newval, oldval)) in __lll_robust_timedlock_wait()
103 lll_futex_timed_wait (futex, newval, &rt, private); in __lll_robust_timedlock_wait()
/libpthread/nptl/sysdeps/unix/sysv/linux/kvx/
A Dpthread_once.c31 int oldval, val, newval; local
41 newval = (oldval & 3) | __fork_generation | 1;
42 val = atomic_compare_and_exchange_val_acq (once_control, newval, oldval);
50 if (((oldval ^ newval) & -4) == 0)
53 lll_futex_wait (once_control, newval, LLL_PRIVATE);
/libpthread/nptl/sysdeps/unix/sysv/linux/aarch64/
A Dpthread_once.c40 int oldval, val, newval; local
50 newval = (oldval & 3) | __fork_generation | 1;
51 val = atomic_compare_and_exchange_val_acq (once_control, newval,
61 if (((oldval ^ newval) & -4) == 0)
64 lll_futex_wait (once_control, newval, LLL_PRIVATE);
/libpthread/nptl/sysdeps/unix/sysv/linux/sparc/
A Dpthread_once.c44 int oldval, val, newval; local
54 newval = (oldval & 3) | __fork_generation | 1;
55 val = atomic_compare_and_exchange_val_acq (once_control, newval,
65 if (((oldval ^ newval) & -4) == 0)
68 lll_futex_wait (once_control, newval, LLL_PRIVATE);
/libpthread/nptl/sysdeps/unix/sysv/linux/or1k/
A Dpthread_once.c42 int oldval, val, newval; local
52 newval = (oldval & 3) | __fork_generation | 1;
53 val = atomic_compare_and_exchange_val_acq (once_control, newval,
63 if (((oldval ^ newval) & -4) == 0)
66 lll_futex_wait (once_control, newval, LLL_PRIVATE);
/libpthread/nptl/sysdeps/unix/sysv/linux/mips/
A Dpthread_once.c42 int oldval, val, newval; in __pthread_once() local
52 newval = (oldval & 3) | __fork_generation | 1; in __pthread_once()
53 val = atomic_compare_and_exchange_val_acq (once_control, newval, in __pthread_once()
63 if (((oldval ^ newval) & -4) == 0) in __pthread_once()
66 lll_futex_wait (once_control, newval, LLL_PRIVATE); in __pthread_once()
/libpthread/nptl/sysdeps/unix/sysv/linux/nds32/
A Dpthread_once.c42 int oldval, val, newval; local
52 newval = (oldval & 3) | __fork_generation | 1;
53 val = atomic_compare_and_exchange_val_acq (once_control, newval,
63 if (((oldval ^ newval) & -4) == 0)
66 lll_futex_wait (once_control, newval, LLL_PRIVATE);
/libpthread/nptl/sysdeps/unix/sysv/linux/riscv64/
A Dpthread_once.c42 int oldval, val, newval; local
52 newval = (oldval & 3) | __fork_generation | 1;
53 val = atomic_compare_and_exchange_val_acq (once_control, newval,
63 if (((oldval ^ newval) & -4) == 0)
66 lll_futex_wait (once_control, newval, LLL_PRIVATE);
/libpthread/nptl/sysdeps/unix/sysv/linux/riscv32/
A Dpthread_once.c42 int oldval, val, newval; local
52 newval = (oldval & 3) | __fork_generation | 1;
53 val = atomic_compare_and_exchange_val_acq (once_control, newval,
63 if (((oldval ^ newval) & -4) == 0)
66 lll_futex_wait (once_control, newval, LLL_PRIVATE);
/libpthread/linuxthreads/sysdeps/xtensa/
A Dpt-machine.h36 extern int __compare_and_swap (long int *p, long int oldval, long int newval);
64 __compare_and_swap (long int *p, long int oldval, long int newval) in __compare_and_swap() argument
79 : "a" (p), "a" (newval), "a" (oldval) in __compare_and_swap()
104 __compare_and_swap (long int *p, long int oldval, long int newval) in __compare_and_swap() argument
118 : "a" (newval), "a" (oldval) in __compare_and_swap()
/libpthread/nptl/sysdeps/unix/sysv/linux/xtensa/
A Dpthread_once.c38 int newval; in __pthread_once() local
49 newval = __fork_generation | 1; in __pthread_once()
53 } while (atomic_compare_and_exchange_val_acq (once_control, newval, oldval) != oldval); in __pthread_once()
64 if (oldval != newval) in __pthread_once()
/libpthread/nptl/sysdeps/unix/sysv/linux/sh/
A Dpthread_once.c38 int newval; in __pthread_once() local
49 newval = __fork_generation | 1; in __pthread_once()
53 } while (atomic_compare_and_exchange_val_acq (once_control, newval, oldval) != oldval); in __pthread_once()
64 if (oldval != newval) in __pthread_once()
/libpthread/linuxthreads/sysdeps/powerpc/
A Dpt-machine.h59 __compare_and_swap (long int *p, long int oldval, long int newval) in __compare_and_swap() argument
71 : "r"(p), "r"(newval), "r"(oldval) in __compare_and_swap()
83 long int oldval, long int newval) in __compare_and_swap_with_release_semantics() argument
96 : "r"(p), "r"(newval), "r"(oldval) in __compare_and_swap_with_release_semantics()
/libpthread/nptl/sysdeps/unix/sysv/linux/microblaze/
A Dpthread_once.c38 int newval; in __pthread_once() local
49 newval = __fork_generation | 1; in __pthread_once()
53 } while (atomic_compare_and_exchange_val_acq (once_control, newval, oldval) != oldval); in __pthread_once()
64 if (oldval != newval) in __pthread_once()
/libpthread/nptl/sysdeps/unix/sysv/linux/alpha/
A Dpthread_once.c40 int newval; in __pthread_once() local
50 newval = __fork_generation | 1; in __pthread_once()
60 : "r" (newval), "m" (*once_control)); in __pthread_once()
71 if (oldval != newval) in __pthread_once()
/libpthread/nptl/sysdeps/unix/sysv/linux/powerpc/
A Dpthread_once.c43 int newval; in __pthread_once() local
53 newval = __fork_generation | 1; in __pthread_once()
61 : "r" (once_control), "r" (newval), "m" (*once_control) in __pthread_once()
73 if (oldval != newval) in __pthread_once()
/libpthread/linuxthreads/
A Dspinlock.h39 extern int __pthread_compare_and_swap(long * ptr, long oldval, long newval,
42 static __inline__ int compare_and_swap(long * ptr, long oldval, long newval, in compare_and_swap() argument
46 return __compare_and_swap(ptr, oldval, newval); in compare_and_swap()
48 return __pthread_compare_and_swap(ptr, oldval, newval, spinlock); in compare_and_swap()
61 long newval, int * spinlock) in compare_and_swap_with_release_semantics() argument
64 newval); in compare_and_swap_with_release_semantics()
69 static __inline__ int compare_and_swap(long * ptr, long oldval, long newval, in compare_and_swap() argument
72 return __compare_and_swap(ptr, oldval, newval); in compare_and_swap()
77 extern int __pthread_compare_and_swap(long * ptr, long oldval, long newval,
80 static __inline__ int compare_and_swap(long * ptr, long oldval, long newval, in compare_and_swap() argument
[all …]
/libpthread/nptl/sysdeps/unix/sysv/linux/csky/
A Dpthread_once.c40 int newval; in __pthread_once() local
51 newval = __fork_generation | 1; in __pthread_once()
55 } while (atomic_compare_and_exchange_val_acq (once_control, newval, oldval) != oldval); in __pthread_once()
66 if (oldval != newval) in __pthread_once()
/libpthread/nptl/sysdeps/unix/sysv/linux/m68k/
A Dpthread_once.c40 int newval; in __pthread_once() local
51 newval = __fork_generation | 1; in __pthread_once()
55 } while (atomic_compare_and_exchange_val_acq (once_control, newval, oldval) != oldval); in __pthread_once()
66 if (oldval != newval) in __pthread_once()
/libpthread/nptl/sysdeps/unix/sysv/linux/metag/
A Dpthread_once.c39 int newval; in __pthread_once() local
50 newval = __fork_generation | 1; in __pthread_once()
54 } while (atomic_compare_and_exchange_val_acq (once_control, newval, oldval) != oldval); in __pthread_once()
65 if (oldval != newval) in __pthread_once()
/libpthread/nptl/sysdeps/unix/sysv/linux/nios2/
A Dpthread_once.c39 int newval; in __pthread_once() local
50 newval = __fork_generation | 1; in __pthread_once()
54 } while (atomic_compare_and_exchange_val_acq (once_control, newval, oldval) != oldval); in __pthread_once()
65 if (oldval != newval) in __pthread_once()

Completed in 68 milliseconds

12