/bionic/libc/kernel/arch-mips/asm/ |
H A D | cmpxchg.h | 24 #define __cmpxchg_asm(ld, st, m, old, new) ({ __typeof(*(m)) __ret; if (cpu_has_llsc && R10000_LLSC_WAR) { __asm__ __volatile__( " .set push \n" " .set noat \n" " .set mips3 \n" "1: " ld " %0, %2 # __cmpxchg_asm \n" " bne %0, %z3, 2f \n" " .set mips0 \n" " move $1, %z4 \n" " .set mips3 \n" " " st " $1, %1 \n" " beqzl $1, 1b \n" "2: \n" " .set pop \n" : "=&r" (__ret), "=R" (*m) : "R" (*m), "Jr" (old), "Jr" (new) : "memory"); } else if (cpu_has_llsc) { __asm__ __volatile__( " .set push \n" " .set noat \n" " .set mips3 \n" "1: " ld " %0, %2 # __cmpxchg_asm \n" " bne %0, %z3, 2f \n" " .set mips0 \n" " move $1, %z4 \n" " .set mips3 \n" " " st " $1, %1 \n" " beqz $1, 3f \n" "2: \n" " .subsection 2 \n" "3: b 1b \n" " .previous \n" " .set pop \n" : "=&r" (__ret), "=R" (*m) : "R" (*m), "Jr" (old), "Jr" (new) : "memory"); } else { unsigned long __flags; raw_local_irq_save(__flags); __ret = *m; if (__ret == old) *m = new; raw_local_irq_restore(__flags); } __ret; }) 25 #define __cmpxchg(ptr, old, new, barrier) ({ __typeof__(ptr) __ptr = (ptr); __typeof__(*(ptr)) __old = (old); __typeof__(*(ptr)) __new = (new); __typeof__(*(ptr)) __res = 0; barrier; switch (sizeof(*(__ptr))) { case 4: __res = __cmpxchg_asm("ll", "sc", __ptr, __old, __new); break; case 8: if (sizeof(long) == 8) { __res = __cmpxchg_asm("lld", "scd", __ptr, __old, __new); break; } default: __cmpxchg_called_with_bad_pointer(); break; } barrier; __res; }) 26 #define cmpxchg(ptr, old, new) __cmpxchg(ptr, old, new, smp_llsc_mb()) 27 #define cmpxchg_local(ptr, old, new) __cmpxchg(ptr, old, new, ) [all...] |
H A D | atomic.h | 34 #define atomic_xchg(v, new) (xchg(&((v)->counter), (new)))
|
H A D | mipsregs.h | 719 #define __BUILD_SET_C0(name) static inline unsigned int set_c0_##name(unsigned int set) { unsigned int res; res = read_c0_##name(); res |= set; write_c0_##name(res); return res; } static inline unsigned int clear_c0_##name(unsigned int clear) { unsigned int res; res = read_c0_##name(); res &= ~clear; write_c0_##name(res); return res; } static inline unsigned int change_c0_##name(unsigned int change, unsigned int new) { unsigned int res; res = read_c0_##name(); res &= ~change; res |= (new & change); write_c0_##name(res); return res; }
|
/bionic/libc/netbsd/isc/ |
H A D | ev_streams.c | 65 evStream *new; local 68 OKNEW(new); 69 new->func = func; 70 new->uap = uap; 71 new->fd = fd; 72 new->flags = 0; 73 if (evSelectFD(opaqueCtx, fd, EV_WRITE, writable, new, &new->file) < 0) 75 if (copyvec(new, iov, iocnt) < 0) 77 new 99 evStream *new; local [all...] |
/bionic/libc/kernel/arch-x86/asm/ |
H A D | atomic_32.h | 30 #define atomic_cmpxchg(v, old, new) (cmpxchg(&((v)->counter), (old), (new))) 31 #define atomic_xchg(v, new) (xchg(&((v)->counter), (new)))
|
/bionic/libc/bionic/ |
H A D | semaphore.c | 166 unsigned int old, new; local 175 new = SEMCOUNT_DECREMENT(old); 178 (int)(new|shared), 190 unsigned int old, new; local 199 new = SEMCOUNT_DECREMENT(old); 202 (int)(new|shared), 220 unsigned int old, new; local 234 new = SEMCOUNT_ONE; 236 new = SEMCOUNT_INCREMENT(old); 239 (int)(new|share [all...] |
/bionic/libstdc++/ |
H A D | Android.mk | 17 src/new.cpp \ 33 src/new.cpp \
|
/bionic/libc/arch-arm/bionic/ |
H A D | clone.S | 32 @ insert the args onto the new stack 41 @ new sp is already in r1
|
/bionic/libc/kernel/common/linux/ |
H A D | cpumask.h | 70 #define cpu_remap(oldbit, old, new) __cpu_remap((oldbit), &(old), &(new), NR_CPUS) 71 #define cpus_remap(dst, src, old, new) __cpus_remap(&(dst), &(src), &(old), &(new), NR_CPUS)
|
H A D | nodemask.h | 71 #define node_remap(oldbit, old, new) __node_remap((oldbit), &(old), &(new), MAX_NUMNODES) 72 #define nodes_remap(dst, src, old, new) __nodes_remap(&(dst), &(src), &(old), &(new), MAX_NUMNODES)
|
/bionic/libc/tzcode/ |
H A D | private.h | 242 char * icatalloc P((char * old, const char * new));
|
/bionic/libc/stdio/ |
H A D | vfprintf.c | 1208 unsigned char *new = (unsigned char *)mmap(NULL, local 1211 memmove(new, *typetable, *tablesize); 1213 *typetable = new;
|
/bionic/libc/ |
H A D | Android.mk | 686 # ensures that symbols that are pulled into those new libraries from libgcc.a are not declared
|