Home
last modified time | relevance | path

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

12

/external/chromium_org/native_client_sdk/src/libraries/sdk_util/
Datomicops.h73 Atomic32 oldval; in AtomicAndFetch() local
76 oldval = *ptr; in AtomicAndFetch()
77 newval = oldval & value; in AtomicAndFetch()
78 } while (InterlockedCompareExchange(ptr, newval, oldval) != oldval); in AtomicAndFetch()
84 Atomic32 oldval; in AtomicOrFetch() local
87 oldval = *ptr; in AtomicOrFetch()
88 newval = oldval | value; in AtomicOrFetch()
89 } while (InterlockedCompareExchange(ptr,newval, oldval) != oldval); in AtomicOrFetch()
95 Atomic32 oldval; in AtomicXorFetch() local
98 oldval = *ptr; in AtomicXorFetch()
[all …]
/external/llvm/test/CodeGen/AArch64/
Dbitfield-insert.ll31 %oldval = load volatile i32* %existing
32 %oldval_keep = and i32 %oldval, 2214592511 ; =0x83ffffff
50 %oldval = load volatile i64* %existing
51 %oldval_keep = and i64 %oldval, 18446742974265032703 ; = 0xffffff0003ffffffL
71 %oldval = load volatile i64* %existing
72 %oldval_keep = and i64 %oldval, 4294901760 ; = 0xffff0000
89 %oldval = load volatile i32* %existing
90 %oldval_keep = and i32 %oldval, 135 ; = 0x87
107 %oldval = load volatile i64* %existing
108 %oldval_keep = and i64 %oldval, 1095216660480 ; = 0xff_0000_0000
[all …]
Dcmpxchg-idioms.ll3 define i32 @test_return(i32* %p, i32 %oldval, i32 %newval) {
23 %pair = cmpxchg i32* %p, i32 %oldval, i32 %newval seq_cst seq_cst
58 define void @test_conditional(i32* %p, i32 %oldval, i32 %newval) {
76 %pair = cmpxchg i32* %p, i32 %oldval, i32 %newval seq_cst seq_cst
Dbitfield-insert-0.ll9 %oldval = load volatile i32* %existing
10 %oldval_keep = and i32 %oldval, 4294705152 ; 0xfffc_0000
Datomic-ops-not-barriers.ll7 %oldval = load i32* %var
8 %newval = add nsw i32 %oldval, -1
/external/chromium_org/third_party/tcmalloc/chromium/src/base/
Datomicops-internals-windows.h74 LONG newval, LONG oldval) { in FastInterlockedCompareExchange() argument
75 return ::InterlockedCompareExchange(const_cast<LONG*>(ptr), newval, oldval); in FastInterlockedCompareExchange()
93 LONG _InterlockedCompareExchange(volatile LONG* ptr, LONG newval, LONG oldval);
104 LONG newval, LONG oldval) {
105 return _InterlockedCompareExchange(ptr, newval, oldval);
118 LONG newval, LONG oldval) {
119 return ::InterlockedCompareExchange(ptr, newval, oldval);
237 PVOID newval, PVOID oldval) { in FastInterlockedCompareExchangePointer() argument
239 newval, oldval); in FastInterlockedCompareExchangePointer()
252 PVOID newval, PVOID oldval);
[all …]
Datomicops-internals-arm-v6plus.h65 Atomic32 oldval, res; in NoBarrier_CompareAndSwap() local
76 : "=&r" (res), "=&r" (oldval), "+Qo" (*ptr) in NoBarrier_CompareAndSwap()
80 return oldval; in NoBarrier_CompareAndSwap()
188 Atomic64 oldval, res; in NoBarrier_CompareAndSwap() local
201 : "=&r" (res), "=&r" (oldval), "+Q" (*ptr) in NoBarrier_CompareAndSwap()
205 return oldval; in NoBarrier_CompareAndSwap()
/external/chromium_org/third_party/tcmalloc/vendor/src/base/
Datomicops-internals-windows.h73 LONG newval, LONG oldval) { in FastInterlockedCompareExchange() argument
74 return ::InterlockedCompareExchange(const_cast<LONG*>(ptr), newval, oldval); in FastInterlockedCompareExchange()
88 LONG _InterlockedCompareExchange(volatile LONG* ptr, LONG newval, LONG oldval);
91 LONG newval, LONG oldval) {
92 return _InterlockedCompareExchange(ptr, newval, oldval);
109 LONG newval, LONG oldval) {
110 return ::InterlockedCompareExchange(ptr, newval, oldval);
228 PVOID newval, PVOID oldval) { in FastInterlockedCompareExchangePointer() argument
230 newval, oldval); in FastInterlockedCompareExchangePointer()
243 PVOID newval, PVOID oldval);
[all …]
Datomicops-internals-arm-v6plus.h64 Atomic32 oldval, res; in NoBarrier_CompareAndSwap() local
75 : "=&r" (res), "=&r" (oldval), "+Qo" (*ptr) in NoBarrier_CompareAndSwap()
79 return oldval; in NoBarrier_CompareAndSwap()
187 Atomic64 oldval, res; in NoBarrier_CompareAndSwap() local
200 : "=&r" (res), "=&r" (oldval), "+Q" (*ptr) in NoBarrier_CompareAndSwap()
204 return oldval; in NoBarrier_CompareAndSwap()
/external/chromium_org/third_party/sqlite/src/test/
Dcorrupt8.test62 set oldval [hexio_read test.db $i 1]
63 if {$oldval==0} break
72 if {$k==$oldval} continue
88 hexio_write test.db $i $oldval
89 if {$oldval>2} {
91 set oldval [hexio_read test.db $i2 1]
92 hexio_write test.db $i2 [format %02x [expr {($oldval+1)&0xff}]]
99 hexio_write test.db $i2 $oldval
/external/clang/test/CodeGen/
Dasm-inout.c35 unsigned char oldval; in test4() local
37 __asm__ ("frob %0" : "=r"(oldval) : "0"(0xff)); in test4()
38 return (int)oldval; in test4()
/external/chromium_org/third_party/usrsctp/usrsctplib/
Duser_atomic.h119 int32_t oldval; \
120 oldval = atomic_fetchadd_int(addr, -val); \
121 if (oldval < val) { \
128 int32_t oldval; \
129 oldval = atomic_fetchadd_int(addr, -val); \
130 if (oldval < val) { \
/external/jemalloc/test/unit/
Dmallctl.c121 bool oldval; \ in TEST_BEGIN()
122 size_t sz = sizeof(oldval); \ in TEST_BEGIN()
123 assert_d_eq(mallctl("config."#config, &oldval, &sz, NULL, 0), \ in TEST_BEGIN()
125 assert_b_eq(oldval, config_##config, "Incorrect config value"); \ in TEST_BEGIN()
126 assert_zu_eq(sz, sizeof(oldval), "Unexpected output size"); \ in TEST_BEGIN()
152 t oldval; \ in TEST_BEGIN()
153 size_t sz = sizeof(oldval); \ in TEST_BEGIN()
155 int result = mallctl("opt."#opt, &oldval, &sz, NULL, 0); \ in TEST_BEGIN()
158 assert_zu_eq(sz, sizeof(oldval), "Unexpected output size"); \ in TEST_BEGIN()
/external/llvm/test/Transforms/AtomicExpandLoadLinked/ARM/
Dcmpxchg-weak.ll31 %oldval = extractvalue { i32, i1 } %pair, 0
32 ret i32 %oldval
63 %oldval = extractvalue { i32, i1 } %pair, 1
64 ret i1 %oldval
95 %oldval = extractvalue { i32, i1 } %pair, 0
96 ret i32 %oldval
/external/llvm/test/CodeGen/X86/
Dcmpxchg-i128-i1.ll40 %oldval = extractvalue { i128, i1 } %pair, 0
41 %success = icmp sge i128 %oldval, %desired
69 %old = phi i128 [%init, %entry], [%oldval, %loop]
73 %oldval = extractvalue { i128, i1 } %pair, 0
Dcmpxchg-i1.ll75 %old = phi i32 [%init, %entry], [%oldval, %loop]
78 %oldval = extractvalue { i32, i1 } %pair, 0
83 ret i32 %oldval
/external/llvm/test/CodeGen/ARM/
Dcmpxchg-idioms.ll3 define i32 @test_return(i32* %p, i32 %oldval, i32 %newval) {
28 %pair = cmpxchg i32* %p, i32 %oldval, i32 %newval seq_cst seq_cst
67 define void @test_conditional(i32* %p, i32 %oldval, i32 %newval) {
90 %pair = cmpxchg i32* %p, i32 %oldval, i32 %newval seq_cst seq_cst
Dcmpxchg-weak.ll7 %oldval = extractvalue { i32, i1 } %pair, 0
19 store i32 %oldval, i32* %addr
Datomic-op.ll202 %oldval = extractvalue { i32, i1 } %pair, 0
214 ret i32 %oldval
221 %oldval = extractvalue { i32, i1 } %pair, 0
234 ret i32 %oldval
/external/jemalloc/src/
Dctl.c999 t oldval; \
1006 oldval = (v); \
1007 READ(oldval, t); \
1022 t oldval; \
1028 oldval = (v); \
1029 READ(oldval, t); \
1043 t oldval; \
1047 oldval = (v); \
1048 READ(oldval, t); \
1066 t oldval; \
[all …]
/external/qemu/hw/arm/
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/strace/
Dsystem.c442 info.name, info.nlen, info.oldval, in sys_sysctl()
548 if (info.oldval == NULL) { in sys_sysctl()
562 printpath(tcp, (size_t)info.oldval); in sys_sysctl()
564 tprintf("%p", info.oldval); in sys_sysctl()
/external/qemu/distrib/sdl-1.2.15/src/video/symbian/EKA1/
DSDL_epocevents.cpp452 const TInt oldval = array[k]; in EPOC_InitOSKeymap() local
454 if(oldval >= 0 && oldval < MAX_SCANCODE && newval >= 0 && newval < MAX_SCANCODE) in EPOC_InitOSKeymap()
456 keymap[oldval] = temp[newval]; in EPOC_InitOSKeymap()
/external/qemu/distrib/sdl-1.2.15/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.ll69 define i32 @AtomicCmpSwap32(i32 %oldval, i32 %newval) nounwind {
74 %0 = cmpxchg i32* @x, i32 %oldval, i32 %tmp monotonic monotonic
251 define signext i8 @AtomicCmpSwap8(i8 signext %oldval, i8 signext %newval) nounwind {
253 %pair0 = cmpxchg i8* @y, i8 %oldval, i8 %newval monotonic monotonic

12