Home
last modified time | relevance | path

Searched refs:a_swap (Results 1 – 25 of 31) sorted by relevance

12

/third_party/musl/porting/uniproton/kernel/src/internal/
Datomic.h31 #ifndef a_swap
32 #define a_swap a_swap macro
33 static inline int a_swap(volatile int *p, int v) in a_swap() function
106 #ifndef a_swap
107 #define a_swap a_swap macro
108 static inline int a_swap(volatile int *p, int v) in a_swap() function
190 a_swap(p, v); in a_store()
/third_party/musl/porting/liteos_m/kernel/src/internal/
Datomic.h31 #ifndef a_swap
32 #define a_swap a_swap macro
33 static inline int a_swap(volatile int *p, int v) in a_swap() function
106 #ifndef a_swap
107 #define a_swap a_swap macro
108 static inline int a_swap(volatile int *p, int v) in a_swap() function
190 a_swap(p, v); in a_store()
/third_party/musl/porting/liteos_m/user/src/internal/
Datomic.h31 #ifndef a_swap
32 #define a_swap a_swap macro
33 static inline int a_swap(volatile int *p, int v) in a_swap() function
106 #ifndef a_swap
107 #define a_swap a_swap macro
108 static inline int a_swap(volatile int *p, int v) in a_swap() function
190 a_swap(p, v); in a_store()
/third_party/musl/porting/liteos_a/kernel/src/internal/
Datomic.h31 #ifndef a_swap
32 #define a_swap a_swap macro
33 static inline int a_swap(volatile int *p, int v) in a_swap() function
106 #ifndef a_swap
107 #define a_swap a_swap macro
108 static inline int a_swap(volatile int *p, int v) in a_swap() function
190 a_swap(p, v); in a_store()
/third_party/musl/src/internal/
Datomic.h31 #ifndef a_swap
32 #define a_swap a_swap macro
33 static inline int a_swap(volatile int *p, int v) in a_swap() function
106 #ifndef a_swap
107 #define a_swap a_swap macro
108 static inline int a_swap(volatile int *p, int v) in a_swap() function
190 a_swap(p, v); in a_store()
/third_party/musl/arch/microblaze/
Datomic_arch.h20 #define a_swap a_swap macro
21 static inline int a_swap(volatile int *x, int v) in a_swap() function
/third_party/musl/arch/i386/
Datomic_arch.h10 #define a_swap a_swap macro
11 static inline int a_swap(volatile int *p, int v) in a_swap() function
/third_party/musl/arch/x32/
Datomic_arch.h10 #define a_swap a_swap macro
11 static inline int a_swap(volatile int *p, int v) in a_swap() function
/third_party/musl/arch/x86_64/
Datomic_arch.h19 #define a_swap a_swap macro
20 static inline int a_swap(volatile int *p, int v) in a_swap() function
/third_party/musl/src/thread/
Dpthread_once.c7 if (a_swap(control, 0) == 3) in undo()
25 if (a_swap(control, 2) == 3) in __pthread_once_full()
Dpthread_mutex_unlock.c41 cont = a_swap(&m->_m_lock, new); in __pthread_mutex_unlock()
Dpthread_barrier_wait.c72 while (a_swap(&b->_b_lock, 1)) in pthread_barrier_wait()
Dpthread_create.c123 int cont = a_swap(&m->_m_lock, 0x40000000); in __pthread_exit()
360 if (a_swap(&args->control, ret ? 3 : 0)==2) in __pthread_create()
Dpthread_cond_timedwait.c44 if (a_swap(l, 0)==2) in unlock()
/third_party/musl/porting/liteos_m/user/src/thread/
Dpthread_detach.c14 if (ret) a_swap(&t->detach_state, DT_JOINABLE); in __pthread_detach()
/third_party/musl/porting/liteos_a/user/src/thread/
Dpthread_detach.c13 if (ret) a_swap(&t->detach_state, DT_JOINABLE); in __pthread_detach()
Dpthread_mutex_unlock.c34 cont = a_swap(&m->_m_lock, new); in __pthread_mutex_unlock()
Dpthread_barrier_wait.c72 while (a_swap(&b->_b_lock, 1)) in pthread_barrier_wait()
/third_party/musl/src/stdio/
Dgetc.h11 if (a_swap(&f->lock, 0) & MAYBE_WAITERS) in locking_getc()
Dputc.h11 if (a_swap(&f->lock, 0) & MAYBE_WAITERS) in locking_putc()
D__lockfile.c21 if (a_swap(&f->lock, 0) & MAYBE_WAITERS) in __unlockfile()
/third_party/musl/src/aio/
Daio.c157 if (a_swap(&at->running, 0) < 0) in cleanup()
159 if (a_swap(&cb->__err, at->err) != EINPROGRESS) in cleanup()
161 if (a_swap(&__aio_fut, 0)) in cleanup()
/third_party/musl/porting/liteos_a/user/src/aio/
Daio.c158 if (a_swap(&at->running, 0) < 0) in cleanup()
160 if (a_swap(&cb->__err, at->err) != EINPROGRESS) in cleanup()
162 if (a_swap(&__aio_fut, 0)) in cleanup()
/third_party/musl/porting/liteos_a/user_debug/src/malloc/
Dmemalign.c11 while(a_swap(lk, 1)) __wait(lk, lk+1, 1, 1); in lock()
/third_party/musl/porting/linux/user/src/thread/
Dpthread_create.c195 int cont = a_swap(&m->_m_lock, 0x40000000); in __pthread_exit()
438 if (a_swap(&args->control, ret ? 3 : 0)==2) in __pthread_create()

12