Home
last modified time | relevance | path

Searched refs:a_cas (Results 1 – 25 of 60) sorted by relevance

123

/third_party/musl/porting/uniproton/kernel/src/internal/
Datomic.h18 #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/
Datomic.h18 #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/
Datomic.h18 #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/
Datomic.h18 #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/
Datomic.h18 #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/
Datomic_arch.h1 #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/
Datomic_arch.h1 #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/
Datomic_arch.h1 #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/
Datomic_arch.h7 #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/
Datomic_arch.h1 #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.c9 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.c23 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()
Dpthread_cond_timedwait.c35 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()
Dpthread_once.c19 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.c23 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/
Datomic_arch.h34 #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/
Datomic_arch.h23 #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/
Datomic_arch.h1 #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/
Datomic_arch.h45 #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/
Datomic_arch.h45 #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/
Datomic_arch.h43 #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/
Datomic_arch.h1 #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/
Datomic_arch.h1 #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/
Dpthread_mutex_trylock.c31 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/
Daio_suspend.c49 a_cas(pfut, EINPROGRESS, expect); in aio_suspend()
54 expect = a_cas(pfut, 0, tid); in aio_suspend()

123