Home
last modified time | relevance | path

Searched refs:a_fetch_add (Results 1 – 15 of 15) sorted by relevance

/third_party/musl/porting/liteos_m/kernel/src/internal/
Datomic.h44 #ifndef a_fetch_add
45 #define a_fetch_add a_fetch_add macro
46 static inline int a_fetch_add(volatile int *p, int v) in a_fetch_add() function
117 #ifndef a_fetch_add
118 #define a_fetch_add a_fetch_add macro
119 static inline int a_fetch_add(volatile int *p, int v) in a_fetch_add() function
169 a_fetch_add(p, 1); in a_inc()
177 a_fetch_add(p, -1); in a_dec()
/third_party/musl/porting/uniproton/kernel/src/internal/
Datomic.h44 #ifndef a_fetch_add
45 #define a_fetch_add a_fetch_add macro
46 static inline int a_fetch_add(volatile int *p, int v) in a_fetch_add() function
117 #ifndef a_fetch_add
118 #define a_fetch_add a_fetch_add macro
119 static inline int a_fetch_add(volatile int *p, int v) in a_fetch_add() function
169 a_fetch_add(p, 1); in a_inc()
177 a_fetch_add(p, -1); in a_dec()
/third_party/musl/porting/liteos_m/user/src/internal/
Datomic.h44 #ifndef a_fetch_add
45 #define a_fetch_add a_fetch_add macro
46 static inline int a_fetch_add(volatile int *p, int v) in a_fetch_add() function
117 #ifndef a_fetch_add
118 #define a_fetch_add a_fetch_add macro
119 static inline int a_fetch_add(volatile int *p, int v) in a_fetch_add() function
169 a_fetch_add(p, 1); in a_inc()
177 a_fetch_add(p, -1); in a_dec()
/third_party/musl/src/internal/
Datomic.h44 #ifndef a_fetch_add
45 #define a_fetch_add a_fetch_add macro
46 static inline int a_fetch_add(volatile int *p, int v) in a_fetch_add() function
117 #ifndef a_fetch_add
118 #define a_fetch_add a_fetch_add macro
119 static inline int a_fetch_add(volatile int *p, int v) in a_fetch_add() function
169 a_fetch_add(p, 1); in a_inc()
177 a_fetch_add(p, -1); in a_dec()
/third_party/musl/porting/liteos_a/kernel/src/internal/
Datomic.h44 #ifndef a_fetch_add
45 #define a_fetch_add a_fetch_add macro
46 static inline int a_fetch_add(volatile int *p, int v) in a_fetch_add() function
117 #ifndef a_fetch_add
118 #define a_fetch_add a_fetch_add macro
119 static inline int a_fetch_add(volatile int *p, int v) in a_fetch_add() function
169 a_fetch_add(p, 1); in a_inc()
177 a_fetch_add(p, -1); in a_dec()
/third_party/musl/arch/microblaze/
Datomic_arch.h37 #define a_fetch_add a_fetch_add macro
38 static inline int a_fetch_add(volatile int *x, int v) in a_fetch_add() function
/third_party/musl/arch/i386/
Datomic_arch.h19 #define a_fetch_add a_fetch_add macro
20 static inline int a_fetch_add(volatile int *p, int v) in a_fetch_add() function
/third_party/musl/arch/x32/
Datomic_arch.h19 #define a_fetch_add a_fetch_add macro
20 static inline int a_fetch_add(volatile int *p, int v) in a_fetch_add() function
/third_party/musl/arch/x86_64/
Datomic_arch.h28 #define a_fetch_add a_fetch_add macro
29 static inline int a_fetch_add(volatile int *p, int v) in a_fetch_add() function
/third_party/musl/porting/liteos_a/user/src/thread/
Dpthread_barrier_wait.c29 if (a_fetch_add(&b->_b_count, -1)==1-limit) { in pshared_barrier_wait()
107 if (a_fetch_add(&inst->count,-1)==1 && a_fetch_add(&inst->finished,1)) in pthread_barrier_wait()
/third_party/musl/src/thread/
Dpthread_barrier_wait.c29 if (a_fetch_add(&b->_b_count, -1)==1-limit) { in pshared_barrier_wait()
107 if (a_fetch_add(&inst->count,-1)==1 && a_fetch_add(&inst->finished,1)) in pthread_barrier_wait()
D__lock.c36 current = a_fetch_add(l, 1) + 1; in __lock()
58 if (a_fetch_add(l, -(INT_MIN + 1)) != (INT_MIN + 1)) { in __unlock()
Dpthread_cond_timedwait.c109 if (a_fetch_add(&c->_c_waiters, -1) == -0x7fffffff) in __pthread_cond_timedwait()
133 if (a_fetch_add(node.notify, -1)==1) in __pthread_cond_timedwait()
Dvmlock.c21 if (a_fetch_add(vmlock, -1)==1 && vmlock[1]) in __vm_unlock()
/third_party/musl/porting/liteos_m/user/src/thread/
D__lock.c34 current = a_fetch_add(l, 1) + 1; in __lock()
56 if (a_fetch_add(l, -(INT_MIN + 1)) != (INT_MIN + 1)) { in __unlock()