/external/chromium_org/native_client_sdk/src/libraries/sdk_util/ |
atomicops.h | 73 Atomic32 oldval; 76 oldval = *ptr; 77 newval = oldval & value; 78 } while (InterlockedCompareExchange(ptr, newval, oldval) != oldval); 84 Atomic32 oldval; 87 oldval = *ptr; 88 newval = oldval | value; 89 } while (InterlockedCompareExchange(ptr,newval, oldval) != oldval); [all...] |
/external/llvm/test/Transforms/LowerAtomic/ |
atomic-swap.ll | 8 ; CHECK: [[OLDVAL:%[a-z0-9]+]] = load i8* [[ADDR:%[a-z0-9]+]] 9 ; CHECK-NEXT: [[SAME:%[a-z0-9]+]] = icmp eq i8 [[OLDVAL]], 0 10 ; CHECK-NEXT: [[TO_STORE:%[a-z0-9]+]] = select i1 [[SAME]], i8 42, i8 [[OLDVAL]] 12 ; CHECK-NEXT: [[TMP:%[a-z0-9]+]] = insertvalue { i8, i1 } undef, i8 [[OLDVAL]], 0
|
/external/llvm/test/CodeGen/AArch64/ |
bitfield-insert.ll | 31 %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_000 [all...] |
bitfield-insert-0.ll | 9 %oldval = load volatile i32* %existing 10 %oldval_keep = and i32 %oldval, 4294705152 ; 0xfffc_0000
|
atomic-ops-not-barriers.ll | 7 %oldval = load i32* %var 8 %newval = add nsw i32 %oldval, -1
|
cmpxchg-idioms.ll | 3 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
|
/external/llvm/test/Transforms/AtomicExpandLoadLinked/ARM/ |
atomic-expansion-v8.ll | 9 ; CHECK: [[OLDVAL:%.*]] = trunc i32 [[OLDVAL32]] to i8 16 ; CHECK: ret i8 [[OLDVAL]] 27 ; CHECK: [[OLDVAL:%.*]] = trunc i32 [[OLDVAL32]] to i16 28 ; CHECK: [[NEWVAL:%.*]] = add i16 [[OLDVAL]], %addend 35 ; CHECK: ret i16 [[OLDVAL]] 45 ; CHECK: [[OLDVAL:%.*]] = call i32 @llvm.arm.ldaex.p0i32(i32* %ptr) 46 ; CHECK: [[NEWVAL:%.*]] = sub i32 [[OLDVAL]], %subend 52 ; CHECK: ret i32 [[OLDVAL]] 69 ; CHECK: [[OLDVAL:%.*]] = or i64 [[LO64]], [[HI64]] 70 ; CHECK: [[NEWVAL:%.*]] = or i64 [[OLDVAL]], %oren [all...] |
atomic-expansion-v7.ll | 9 ; CHECK: [[OLDVAL:%.*]] = trunc i32 [[OLDVAL32]] to i8 16 ; CHECK: ret i8 [[OLDVAL]] 27 ; CHECK: [[OLDVAL:%.*]] = trunc i32 [[OLDVAL32]] to i16 28 ; CHECK: [[NEWVAL:%.*]] = add i16 [[OLDVAL]], %addend 35 ; CHECK: ret i16 [[OLDVAL]] 45 ; CHECK: [[OLDVAL:%.*]] = call i32 @llvm.arm.ldrex.p0i32(i32* %ptr) 46 ; CHECK: [[NEWVAL:%.*]] = sub i32 [[OLDVAL]], %subend 52 ; CHECK: ret i32 [[OLDVAL]] 63 ; CHECK: [[OLDVAL:%.*]] = trunc i32 [[OLDVAL32]] to i8 64 ; CHECK: [[NEWVAL:%.*]] = and i8 [[OLDVAL]], %anden [all...] |
cmpxchg-weak.ll | 31 %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/chromium_org/third_party/sqlite/src/test/ |
corrupt8.test | 62 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/ |
asm-inout.c | 35 unsigned char oldval; local 37 __asm__ ("frob %0" : "=r"(oldval) : "0"(0xff)); 38 return (int)oldval;
|
/external/kernel-headers/original/uapi/linux/ |
futex.h | 135 #define FUTEX_OP_CMP_EQ 0 /* if (oldval == CMPARG) wake */ 136 #define FUTEX_OP_CMP_NE 1 /* if (oldval != CMPARG) wake */ 137 #define FUTEX_OP_CMP_LT 2 /* if (oldval < CMPARG) wake */ 138 #define FUTEX_OP_CMP_LE 3 /* if (oldval <= CMPARG) wake */ 139 #define FUTEX_OP_CMP_GT 4 /* if (oldval > CMPARG) wake */ 140 #define FUTEX_OP_CMP_GE 5 /* if (oldval >= CMPARG) wake */ 143 int oldval = *(int *)UADDR2; 144 *(int *)UADDR2 = oldval OP OPARG; 145 if (oldval CMP CMPARG)
|
/external/llvm/test/CodeGen/X86/ |
cmpxchg-i128-i1.ll | 40 %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
|
cmpxchg-i1.ll | 60 ; CHECK: movl (%rdi), %e[[OLDVAL:[a-z0-9]+]] 63 ; CHECK: leal (%r[[OLDVAL]],%rsi), [[NEW:%[a-z0-9]+]] 75 %old = phi i32 [%init, %entry], [%oldval, %loop] 78 %oldval = extractvalue { i32, i1 } %pair, 0 83 ret i32 %oldval
|
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6/sysroot/usr/include/linux/ |
futex.h | 135 #define FUTEX_OP_CMP_EQ 0 /* if (oldval == CMPARG) wake */ 136 #define FUTEX_OP_CMP_NE 1 /* if (oldval != CMPARG) wake */ 137 #define FUTEX_OP_CMP_LT 2 /* if (oldval < CMPARG) wake */ 138 #define FUTEX_OP_CMP_LE 3 /* if (oldval <= CMPARG) wake */ 139 #define FUTEX_OP_CMP_GT 4 /* if (oldval > CMPARG) wake */ 140 #define FUTEX_OP_CMP_GE 5 /* if (oldval >= CMPARG) wake */ 143 int oldval = *(int *)UADDR2; 144 *(int *)UADDR2 = oldval OP OPARG; 145 if (oldval CMP CMPARG)
|
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.8/sysroot/usr/include/linux/ |
futex.h | 135 #define FUTEX_OP_CMP_EQ 0 /* if (oldval == CMPARG) wake */ 136 #define FUTEX_OP_CMP_NE 1 /* if (oldval != CMPARG) wake */ 137 #define FUTEX_OP_CMP_LT 2 /* if (oldval < CMPARG) wake */ 138 #define FUTEX_OP_CMP_LE 3 /* if (oldval <= CMPARG) wake */ 139 #define FUTEX_OP_CMP_GT 4 /* if (oldval > CMPARG) wake */ 140 #define FUTEX_OP_CMP_GE 5 /* if (oldval >= CMPARG) wake */ 143 int oldval = *(int *)UADDR2; 144 *(int *)UADDR2 = oldval OP OPARG; 145 if (oldval CMP CMPARG)
|
/bionic/libc/private/ |
bionic_atomic_arm64.h | 29 int32_t tmp, oldval; local 38 : "=&r" (tmp), "=&r" (oldval), "+o"(*ptr) 41 return oldval != old_value;
|
/external/llvm/test/CodeGen/ARM/ |
cmpxchg-idioms.ll | 3 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
|
cmpxchg-weak.ll | 7 %oldval = extractvalue { i32, i1 } %pair, 0 19 store i32 %oldval, i32* %addr
|
/external/chromium_org/third_party/tcmalloc/chromium/src/base/ |
atomicops-internals-windows.h | 74 LONG newval, LONG oldval) { 75 return ::InterlockedCompareExchange(const_cast<LONG*>(ptr), newval, oldval); 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) { 239 newval, oldval); 252 PVOID newval, PVOID oldval); [all...] |
/external/chromium_org/third_party/tcmalloc/vendor/src/base/ |
atomicops-internals-windows.h | 73 LONG newval, LONG oldval) { 74 return ::InterlockedCompareExchange(const_cast<LONG*>(ptr), newval, oldval); 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) { 230 newval, oldval); 243 PVOID newval, PVOID oldval); [all...] |
/external/chromium_org/third_party/icu/source/common/ |
umutex.c | 115 #define SYNC_COMPARE_AND_SWAP(dest, oldval, newval) \ 116 mutexed_compare_and_swap(dest, newval, oldval) 125 #define SYNC_COMPARE_AND_SWAP(dest, oldval, newval) \ 126 InterlockedCompareExchangePointer(dest, newval, oldval) 137 #define SYNC_COMPARE_AND_SWAP(dest, oldval, newval) \ 138 __sync_val_compare_and_swap(dest, oldval, newval) 140 #define SYNC_COMPARE_AND_SWAP(dest, oldval, newval) \ 141 mutexed_compare_and_swap(dest, newval, oldval) 152 #define SYNC_COMPARE_AND_SWAP(dest, oldval, newval) \ 153 mutexed_compare_and_swap(dest, newval, oldval) [all...] |
/external/jemalloc/test/unit/ |
mallctl.c | 121 bool oldval; \ 122 size_t sz = sizeof(oldval); \ 123 assert_d_eq(mallctl("config."#config, &oldval, &sz, NULL, 0), \ 125 assert_b_eq(oldval, config_##config, "Incorrect config value"); \ 126 assert_zu_eq(sz, sizeof(oldval), "Unexpected output size"); \ 152 t oldval; \ 153 size_t sz = sizeof(oldval); \ 155 int result = mallctl("opt."#opt, &oldval, &sz, NULL, 0); \ 158 assert_zu_eq(sz, sizeof(oldval), "Unexpected output size"); \
|
/prebuilts/misc/common/swig/include/2.0.11/ruby/ |
std_multimap.i | 62 VALUE oldval = rb_hash_aref( obj, key ); 63 if ( oldval == Qnil ) 69 if ( TYPE(oldval) == T_ARRAY ) 70 ary = oldval; 74 rb_ary_push( ary, oldval );
|
/external/llvm/lib/IR/ |
Use.cpp | 24 Value *OldVal = Val; 33 if (OldVal) { 34 RHS.Val = OldVal;
|