Home
last modified time | relevance | path

Searched refs:oldval (Results 1 – 22 of 22) sorted by relevance

/external/bluetooth/glib/glib/
Dgatomic.c61 gint oldval, in g_atomic_int_compare_and_exchange() argument
68 : "r" (newval), "m" (*atomic), "0" (oldval)); in g_atomic_int_compare_and_exchange()
70 return result == oldval; in g_atomic_int_compare_and_exchange()
79 gpointer oldval, in g_atomic_pointer_compare_and_exchange() argument
86 : "r" (newval), "m" (*atomic), "0" (oldval)); in g_atomic_pointer_compare_and_exchange()
88 return result == oldval; in g_atomic_pointer_compare_and_exchange()
94 # define ATOMIC_INT_CMP_XCHG(atomic, oldval, newval) \ argument
99 : "r" (oldval), "m" (*(atomic)), "r" (atomic),\
101 __result == oldval; \
107 gpointer oldval, in g_atomic_pointer_compare_and_exchange() argument
[all …]
Dgatomic.h46 gint oldval,
49 gpointer oldval,
/external/kernel-headers/original/asm-generic/
Dfutex.h17 int oldval = 0, ret; in futex_atomic_op_inuser() local
40 case FUTEX_OP_CMP_EQ: ret = (oldval == cmparg); break; in futex_atomic_op_inuser()
41 case FUTEX_OP_CMP_NE: ret = (oldval != cmparg); break; in futex_atomic_op_inuser()
42 case FUTEX_OP_CMP_LT: ret = (oldval < cmparg); break; in futex_atomic_op_inuser()
43 case FUTEX_OP_CMP_GE: ret = (oldval >= cmparg); break; in futex_atomic_op_inuser()
44 case FUTEX_OP_CMP_LE: ret = (oldval <= cmparg); break; in futex_atomic_op_inuser()
45 case FUTEX_OP_CMP_GT: ret = (oldval > cmparg); break; in futex_atomic_op_inuser()
53 futex_atomic_cmpxchg_inatomic(int __user *uaddr, int oldval, int newval) in futex_atomic_cmpxchg_inatomic() argument
/external/kernel-headers/original/asm-x86/
Dspinlock_32.h89 char oldval; in __raw_spin_trylock() local
92 :"=q" (oldval), "+m" (lock->slock) in __raw_spin_trylock()
94 return oldval > 0; in __raw_spin_trylock()
115 char oldval = 1; in __raw_spin_unlock() local
118 : "=q" (oldval), "+m" (lock->slock) in __raw_spin_unlock()
119 : "0" (oldval) : "memory"); in __raw_spin_unlock()
/external/icu4c/common/
Dumutex.c115 #define SYNC_COMPARE_AND_SWAP(dest, oldval, newval) \ argument
116 mutexed_compare_and_swap(dest, newval, oldval)
125 #define SYNC_COMPARE_AND_SWAP(dest, oldval, newval) \ argument
126 InterlockedCompareExchangePointer(dest, newval, oldval)
137 #define SYNC_COMPARE_AND_SWAP(dest, oldval, newval) \ argument
138 __sync_val_compare_and_swap(dest, oldval, newval)
140 #define SYNC_COMPARE_AND_SWAP(dest, oldval, newval) \ argument
141 mutexed_compare_and_swap(dest, newval, oldval)
152 #define SYNC_COMPARE_AND_SWAP(dest, oldval, newval) \ argument
153 mutexed_compare_and_swap(dest, newval, oldval)
[all …]
/external/clang/test/CodeGen/
Dasm-inout.c35 unsigned char oldval; in test4() local
36 __asm__ ("frob %0" : "=r"(oldval) : "0"(0xff)); in test4()
37 return (int)oldval; in test4()
/external/kernel-headers/original/linux/
Dspinlock_up.h37 char oldval = lock->slock; in __raw_spin_trylock() local
41 return oldval > 0; in __raw_spin_trylock()
Dsysctl.h36 void __user *oldval; member
912 void __user *oldval, size_t __user *oldlenp,
939 void __user *oldval, size_t __user *oldlenp,
944 void __user *oldval, size_t __user *oldlenp,
/external/kernel-headers/original/asm-arm/
Datomic.h85 unsigned long oldval, res; in atomic_cmpxchg() local
93 : "=&r" (res), "=&r" (oldval) in atomic_cmpxchg()
98 return oldval; in atomic_cmpxchg()
/external/llvm/test/CodeGen/CellSPU/
Dcall.ll48 %oldval = extractvalue %0 %rv, 1
49 %newval = add i32 %oldval,1
/external/qemu/hw/
Darmv7m_nvic.c269 uint32_t oldval; in nvic_writel() local
272 oldval = s->systick.control; in nvic_writel()
275 if ((oldval ^ value) & SYSTICK_ENABLE) { in nvic_writel()
290 } else if ((oldval ^ value) & SYSTICK_CLKSOURCE) { in nvic_writel()
/external/qemu/distrib/sdl-1.2.12/src/audio/macrom/
DSDL_romaudio.c153 SInt32 oldval; in Mac_UnlockAudio() local
155 oldval = DecrementAtomic((SInt32 *) &audio_is_locked); in Mac_UnlockAudio()
156 if ( oldval != 1 ) /* != 1 means audio is still locked. */ in Mac_UnlockAudio()
/external/llvm/test/CodeGen/Mips/
Datomic.ll64 define i32 @AtomicCmpSwap32(i32 %oldval, i32 %newval) nounwind {
69 %0 = call i32 @llvm.atomic.cmp.swap.i32.p0i32(i32* @x, i32 %oldval, i32 %tmp)
209 define signext i8 @AtomicCmpSwap8(i8 signext %oldval, i8 signext %newval) nounwind {
211 %0 = call i8 @llvm.atomic.cmp.swap.i8.p0i8(i8* @y, i8 %oldval, i8 %newval)
/external/mksh/src/
Dmisc.c199 unsigned char oldval; in change_flag() local
201 oldval = Flag(f); in change_flag()
205 if (what != OF_CMDLINE && newval != oldval) in change_flag()
219 } else if (f == FPRIVILEGED && oldval && !newval) { in change_flag()
/external/strace/
Dsystem.c1837 info.name, info.nlen, info.oldval,
1953 printpath(tcp, (size_t)info.oldval);
1963 tprintf("%p, %Zd, %p, %Zd", info.oldval, oldlen,
/external/quake/quake/src/QW/server/
Dsv_user.c1058 char oldval[MAX_INFO_STRING]; in SV_SetInfo_f() local
1077 strcpy(oldval, Info_ValueForKey(host_client->userinfo, Cmd_Argv(1))); in SV_SetInfo_f()
1086 if (!strcmp(Info_ValueForKey(host_client->userinfo, Cmd_Argv(1)), oldval)) in SV_SetInfo_f()
/external/opencv/cv/src/
Dcvfilter.cpp1915 int oldval, newval; in init_sobel_kernel() local
1922 oldval = kerI[0]; in init_sobel_kernel()
1926 kerI[j-1] = oldval; in init_sobel_kernel()
1927 oldval = newval; in init_sobel_kernel()
1933 oldval = -kerI[0]; in init_sobel_kernel()
1937 kerI[j-1] = oldval; in init_sobel_kernel()
1938 oldval = newval; in init_sobel_kernel()
/external/llvm/lib/Target/ARM/
DARMISelLowering.cpp4904 unsigned oldval = MI->getOperand(2).getReg(); in EmitAtomicCmpSwap() local
4917 MRI.constrainRegClass(oldval, ARM::rGPRRegisterClass); in EmitAtomicCmpSwap()
4968 .addReg(dest).addReg(oldval)); in EmitAtomicCmpSwap()
5112 unsigned oldval = dest; in EmitAtomicBinaryMinMax() local
5177 oldval = MRI.createVirtualRegister(ARM::GPRRegisterClass); in EmitAtomicBinaryMinMax()
5178 AddDefaultPred(BuildMI(BB, dl, TII->get(extendOpc), oldval).addReg(dest)); in EmitAtomicBinaryMinMax()
5183 .addReg(oldval).addReg(incr)); in EmitAtomicBinaryMinMax()
5185 .addReg(oldval).addReg(incr).addImm(Cond).addReg(ARM::CPSR); in EmitAtomicBinaryMinMax()
/external/valgrind/main/include/vki/
Dvki-linux.h1312 void __user *oldval; member
/external/llvm/lib/Target/PowerPC/
DPPCISelLowering.cpp4955 unsigned oldval = MI->getOperand(3).getReg(); in EmitInstrWithCustomInserter() local
4992 .addReg(oldval).addReg(dest); in EmitInstrWithCustomInserter()
5026 unsigned oldval = MI->getOperand(3).getReg(); in EmitInstrWithCustomInserter() local
5115 .addReg(oldval).addReg(ShiftReg); in EmitInstrWithCustomInserter()
/external/qemu-pc-bios/bochs/bios/
Drombios.c2178 Bit8u oldval;
2183 oldval = inb(0x92);
2187 outb(0x92, oldval | 0x02);
2189 outb(0x92, oldval & 0xfd);
2191 return((oldval & 0x02) != 0);
/external/valgrind/main/coregrind/m_syswrap/
Dsyswrap-linux.c741 PRE_MEM_WRITE("sysctl(oldval)", (Addr)args->oldval, *args->oldlenp); in PRE()
750 POST_MEM_WRITE((Addr)args->oldval, 1 + *args->oldlenp); in POST()