Home
last modified time | relevance | path

Searched refs:old (Results 1 – 14 of 14) sorted by relevance

/bionic/libc/bionic/
Datomics_x86.c63 int __atomic_cmpxchg(int old, int new, volatile int* addr) { in __atomic_cmpxchg() argument
70 : "a" (old), in __atomic_cmpxchg()
78 int old; in __atomic_swap() local
82 : "=c" (old) in __atomic_swap()
86 return old; in __atomic_swap()
90 int old; in __atomic_dec() local
92 old = *addr; in __atomic_dec()
93 } while (atomic_cmpxchg(old, old-1, addr)); in __atomic_dec()
94 return old; in __atomic_dec()
Dsemaphore.c166 unsigned int old, new; in __sem_dec() local
170 old = (*pvalue & SEMCOUNT_VALUE_MASK); in __sem_dec()
171 ret = SEMCOUNT_TO_VALUE(old); in __sem_dec()
175 new = SEMCOUNT_DECREMENT(old); in __sem_dec()
177 while (__atomic_cmpxchg((int)(old|shared), in __sem_dec()
190 unsigned int old, new; in __sem_trydec() local
194 old = (*pvalue & SEMCOUNT_VALUE_MASK); in __sem_trydec()
195 ret = SEMCOUNT_TO_VALUE(old); in __sem_trydec()
199 new = SEMCOUNT_DECREMENT(old); in __sem_trydec()
201 while (__atomic_cmpxchg((int)(old|shared), in __sem_trydec()
[all …]
/bionic/libc/netbsd/isc/
Dev_streams.c152 evStream *old = id.opaque; in evCancelRW() local
163 if (old->prev != NULL) in evCancelRW()
164 old->prev->next = old->next; in evCancelRW()
166 ctx->streams = old->next; in evCancelRW()
167 if (old->next != NULL) in evCancelRW()
168 old->next->prev = old->prev; in evCancelRW()
174 if (old->prevDone == NULL && old->nextDone == NULL) { in evCancelRW()
180 if (ctx->strDone == old) { in evCancelRW()
185 if (old->prevDone != NULL) in evCancelRW()
186 old->prevDone->nextDone = old->nextDone; in evCancelRW()
[all …]
Deventlib_p.h228 evWait *evFreeWait(evContext_p *ctx, evWait *old);
/bionic/libc/arch-x86/include/sys/
Datomics.h37 __atomic_cmpxchg(int old, int _new, volatile int *ptr) in __atomic_cmpxchg() argument
39 return !__sync_bool_compare_and_swap (ptr, old, _new); in __atomic_cmpxchg()
/bionic/libc/arch-sh/bionic/
Datomics_sh.c43 int __atomic_cmpxchg(int old, int _new, volatile int *ptr)
50 if (*ptr == old) {
60 extern int __atomic_cmpxchg(int old, int _new, volatile int *ptr);
/bionic/libc/kernel/arch-x86/asm/
Dlocal_32.h33old; c = local_read(l); for (;;) { if (unlikely(c == (u))) break; old = local_cmpxchg((l…
Datomic_32.h27 #define atomic_cmpxchg(v, old, new) (cmpxchg(&((v)->counter), (old), (new))) argument
/bionic/libc/include/sys/
Datomics.h36 extern int __atomic_cmpxchg(int old, int _new, volatile int *ptr);
/bionic/libc/kernel/common/linux/
Dcpumask.h56 #define cpu_remap(oldbit, old, new) __cpu_remap((oldbit), &(old), &(new), NR_CPUS) argument
57 #define cpus_remap(dst, src, old, new) __cpus_remap(&(dst), &(src), &(old), &(new), NR_CPUS) argument
Dnodemask.h57 #define node_remap(oldbit, old, new) __node_remap((oldbit), &(old), &(new), MAX_NUMNODES) argument
58 #define nodes_remap(dst, src, old, new) __nodes_remap(&(dst), &(src), &(old), &(new), MAX_NUMNODE… argument
Duinput.h23 struct ff_effect old; member
/bionic/libc/tzcode/
Dprivate.h242 char * icatalloc P((char * old, const char * new));
/bionic/libc/kernel/
DREADME.TXT205 - some headers contain invalid "legacy" definitions for the benefit of old