/third_party/musl/porting/uniproton/kernel/src/internal/ |
D | atomic.h | 18 #ifndef a_cas 19 #define a_cas a_cas macro 20 static inline int a_cas(volatile int *p, int t, int s) in a_cas() function 102 #ifndef a_cas 103 #error missing definition of a_cas 112 while (a_cas(p, old, v) != old); in a_swap() 123 while (a_cas(p, old, (unsigned)old+v) != old); in a_fetch_add() 134 while (a_cas(p, old, old&v) != old); in a_fetch_and() 144 while (a_cas(p, old, old|v) != old); in a_fetch_or() 200 a_cas(&tmp, 0, 0); in a_barrier() [all …]
|
/third_party/musl/porting/liteos_m/kernel/src/internal/ |
D | atomic.h | 18 #ifndef a_cas 19 #define a_cas a_cas macro 20 static inline int a_cas(volatile int *p, int t, int s) in a_cas() function 102 #ifndef a_cas 103 #error missing definition of a_cas 112 while (a_cas(p, old, v) != old); in a_swap() 123 while (a_cas(p, old, (unsigned)old+v) != old); in a_fetch_add() 134 while (a_cas(p, old, old&v) != old); in a_fetch_and() 144 while (a_cas(p, old, old|v) != old); in a_fetch_or() 200 a_cas(&tmp, 0, 0); in a_barrier() [all …]
|
/third_party/musl/porting/liteos_m/user/src/internal/ |
D | atomic.h | 18 #ifndef a_cas 19 #define a_cas a_cas macro 20 static inline int a_cas(volatile int *p, int t, int s) in a_cas() function 102 #ifndef a_cas 103 #error missing definition of a_cas 112 while (a_cas(p, old, v) != old); in a_swap() 123 while (a_cas(p, old, (unsigned)old+v) != old); in a_fetch_add() 134 while (a_cas(p, old, old&v) != old); in a_fetch_and() 144 while (a_cas(p, old, old|v) != old); in a_fetch_or() 200 a_cas(&tmp, 0, 0); in a_barrier() [all …]
|
/third_party/musl/porting/liteos_a/kernel/src/internal/ |
D | atomic.h | 18 #ifndef a_cas 19 #define a_cas a_cas macro 20 static inline int a_cas(volatile int *p, int t, int s) in a_cas() function 102 #ifndef a_cas 103 #error missing definition of a_cas 112 while (a_cas(p, old, v) != old); in a_swap() 123 while (a_cas(p, old, (unsigned)old+v) != old); in a_fetch_add() 134 while (a_cas(p, old, old&v) != old); in a_fetch_and() 144 while (a_cas(p, old, old|v) != old); in a_fetch_or() 200 a_cas(&tmp, 0, 0); in a_barrier() [all …]
|
/third_party/musl/src/internal/ |
D | atomic.h | 18 #ifndef a_cas 19 #define a_cas a_cas macro 20 static inline int a_cas(volatile int *p, int t, int s) in a_cas() function 102 #ifndef a_cas 103 #error missing definition of a_cas 112 while (a_cas(p, old, v) != old); in a_swap() 123 while (a_cas(p, old, (unsigned)old+v) != old); in a_fetch_add() 134 while (a_cas(p, old, old&v) != old); in a_fetch_and() 144 while (a_cas(p, old, old|v) != old); in a_fetch_or() 200 a_cas(&tmp, 0, 0); in a_barrier() [all …]
|
/third_party/musl/arch/m68k/ |
D | atomic_arch.h | 1 #define a_cas a_cas macro 2 static inline int a_cas(volatile int *p, int t, int s) in a_cas() function
|
/third_party/musl/arch/or1k/ |
D | atomic_arch.h | 1 #define a_cas a_cas macro 2 static inline int a_cas(volatile int *p, int t, int s) in a_cas() function
|
/third_party/musl/arch/s390x/ |
D | atomic_arch.h | 1 #define a_cas a_cas macro 2 static inline int a_cas(volatile int *p, int t, int s) in a_cas() function
|
/third_party/musl/arch/riscv64/ |
D | atomic_arch.h | 7 #define a_cas a_cas macro 8 static inline int a_cas(volatile int *p, int t, int s) in a_cas() function
|
/third_party/musl/arch/microblaze/ |
D | atomic_arch.h | 1 #define a_cas a_cas macro 2 static inline int a_cas(volatile int *p, int t, int s) in a_cas() function
|
/third_party/musl/src/stdio/ |
D | __lockfile.c | 9 owner = a_cas(&f->lock, 0, tid); in __lockfile() 11 while ((owner = a_cas(&f->lock, 0, tid|MAYBE_WAITERS))) { in __lockfile() 13 a_cas(&f->lock, owner, owner|MAYBE_WAITERS)==owner) in __lockfile()
|
/third_party/musl/src/thread/ |
D | __lock.c | 23 int current = a_cas(l, 0, INT_MIN + 1); in __lock() 29 int val = a_cas(l, current, INT_MIN + (current + 1)); in __lock() 46 int val = a_cas(l, current, INT_MIN + current); in __lock()
|
D | pthread_cond_timedwait.c | 35 if (a_cas(l, 0, 1)) { in lock() 36 a_cas(l, 1, 2); in lock() 38 while (a_cas(l, 0, 2)); in lock() 115 oldstate = a_cas(&node.state, WAITING, LEAVING); in __pthread_cond_timedwait() 180 if (a_cas(&p->state, WAITING, SIGNALED) != WAITING) { in __private_cond_signal()
|
D | pthread_once.c | 19 for (;;) switch (a_cas(control, 0, 1)) { in __pthread_once_full() 30 a_cas(control, 1, 3); in __pthread_once_full()
|
/third_party/musl/porting/liteos_m/user/src/thread/ |
D | __lock.c | 23 int current = a_cas(l, 0, INT_MIN + 1); in __lock() 29 int val = a_cas(l, current, INT_MIN + (current + 1)); in __lock() 46 int val = a_cas(l, current, INT_MIN + current); in __lock()
|
/third_party/musl/arch/sh/ |
D | atomic_arch.h | 34 #define a_cas a_cas macro 36 static inline int a_cas(volatile int *p, int t, int s) in a_cas() function
|
/third_party/musl/arch/aarch64/ |
D | atomic_arch.h | 23 #define a_cas a_cas macro 24 static inline int a_cas(volatile int *p, int t, int s) in a_cas() function
|
/third_party/musl/arch/i386/ |
D | atomic_arch.h | 1 #define a_cas a_cas macro 2 static inline int a_cas(volatile int *p, int t, int s) in a_cas() function
|
/third_party/musl/porting/liteos_a/kernel/include/ |
D | atomic_arch.h | 45 #define a_cas a_cas macro 46 static inline int a_cas(volatile int *p, int t, int s) in a_cas() function
|
/third_party/musl/arch/arm/ |
D | atomic_arch.h | 45 #define a_cas a_cas macro 46 static inline int a_cas(volatile int *p, int t, int s) in a_cas() function
|
/third_party/musl/porting/liteos_m/user/arch/arm/ |
D | atomic_arch.h | 43 #define a_cas a_cas macro 44 static inline int a_cas(volatile int *p, int t, int s) in a_cas() function
|
/third_party/musl/arch/x32/ |
D | atomic_arch.h | 1 #define a_cas a_cas macro 2 static inline int a_cas(volatile int *p, int t, int s) in a_cas() function
|
/third_party/musl/arch/x86_64/ |
D | atomic_arch.h | 1 #define a_cas a_cas macro 2 static inline int a_cas(volatile int *p, int t, int s) in a_cas() function
|
/third_party/musl/porting/liteos_a/user/src/thread/ |
D | pthread_mutex_trylock.c | 31 if (a_cas(&m->_m_lock, old, tid) != old) { in __pthread_mutex_trylock_owner() 55 return a_cas(&m->_m_lock, 0, EBUSY) & EBUSY; in __pthread_mutex_trylock()
|
/third_party/musl/src/aio/ |
D | aio_suspend.c | 49 a_cas(pfut, EINPROGRESS, expect); in aio_suspend() 54 expect = a_cas(pfut, 0, tid); in aio_suspend()
|