Home
last modified time | relevance | path

Searched refs:old_val (Results 1 – 25 of 32) sorted by relevance

12

/external/compiler-rt/lib/sanitizer_common/tests/
Dsanitizer_atomic_test.cc98 Type old_val = 42; in CheckAtomicCompareExchange() local
100 Type var = old_val; in CheckAtomicCompareExchange()
101 EXPECT_TRUE(atomic_compare_exchange_strong((T*)&var, &old_val, new_val, in CheckAtomicCompareExchange()
103 EXPECT_FALSE(atomic_compare_exchange_strong((T*)&var, &old_val, new_val, in CheckAtomicCompareExchange()
105 EXPECT_EQ(new_val, old_val); in CheckAtomicCompareExchange()
108 Type old_val = 42; in CheckAtomicCompareExchange() local
110 Type var = old_val; in CheckAtomicCompareExchange()
111 EXPECT_TRUE(atomic_compare_exchange_weak((T*)&var, &old_val, new_val, in CheckAtomicCompareExchange()
113 EXPECT_FALSE(atomic_compare_exchange_weak((T*)&var, &old_val, new_val, in CheckAtomicCompareExchange()
115 EXPECT_EQ(new_val, old_val); in CheckAtomicCompareExchange()
/external/chromium_org/third_party/tcmalloc/chromium/src/base/
Datomicops-internals-x86.h321 Atomic64 old_val, in NoBarrier_CompareAndSwap() argument
323 return __sync_val_compare_and_swap(ptr, old_val, new_val); in NoBarrier_CompareAndSwap()
328 Atomic64 old_val; in NoBarrier_AtomicExchange() local
331 old_val = *ptr; in NoBarrier_AtomicExchange()
332 } while (__sync_val_compare_and_swap(ptr, old_val, new_val) != old_val); in NoBarrier_AtomicExchange()
334 return old_val; in NoBarrier_AtomicExchange()
339 Atomic64 old_val, new_val; in NoBarrier_AtomicIncrement() local
342 old_val = *ptr; in NoBarrier_AtomicIncrement()
343 new_val = old_val + increment; in NoBarrier_AtomicIncrement()
344 } while (__sync_val_compare_and_swap(ptr, old_val, new_val) != old_val); in NoBarrier_AtomicIncrement()
[all …]
/external/chromium_org/third_party/tcmalloc/vendor/src/base/
Datomicops-internals-x86.h321 Atomic64 old_val, in NoBarrier_CompareAndSwap() argument
323 return __sync_val_compare_and_swap(ptr, old_val, new_val); in NoBarrier_CompareAndSwap()
328 Atomic64 old_val; in NoBarrier_AtomicExchange() local
331 old_val = *ptr; in NoBarrier_AtomicExchange()
332 } while (__sync_val_compare_and_swap(ptr, old_val, new_val) != old_val); in NoBarrier_AtomicExchange()
334 return old_val; in NoBarrier_AtomicExchange()
339 Atomic64 old_val, new_val; in NoBarrier_AtomicIncrement() local
342 old_val = *ptr; in NoBarrier_AtomicIncrement()
343 new_val = old_val + increment; in NoBarrier_AtomicIncrement()
344 } while (__sync_val_compare_and_swap(ptr, old_val, new_val) != old_val); in NoBarrier_AtomicIncrement()
[all …]
/external/lldb/test/functionalities/watchpoint/multiple_threads/
Dmain.cpp32 uint32_t old_val = g_val; in access_pool() local
34 printf("changing g_val to %d...\n", (old_val + 1)); in access_pool()
35 g_val = old_val + 1; in access_pool()
/external/lldb/test/functionalities/stop-hook/multiple_threads/
Dmain.cpp32 uint32_t old_val = g_val; in access_pool() local
34 g_val = old_val + 1; in access_pool()
/external/lldb/test/python_api/watchpoint/watchlocation/
Dmain.cpp38 char old_val = *g_char_ptr; in access_pool() local
40 do_bad_thing_with_location(g_char_ptr, old_val + 1); in access_pool()
/external/lldb/test/functionalities/watchpoint/hello_watchlocation/
Dmain.cpp40 char old_val = *g_char_ptr; in access_pool() local
42 do_bad_thing_with_location(g_char_ptr, old_val + 1); in access_pool()
/external/chromium_org/third_party/yasm/source/patched-yasm/libyasm/
Dbytecode.h132 int (*expand) (yasm_bytecode *bc, int span, long old_val, long new_val,
271 (yasm_bytecode *bc, int span, long old_val, long new_val,
488 int yasm_bc_expand(yasm_bytecode *bc, int span, long old_val, long new_val,
Dbc-org.c51 static int bc_org_expand(yasm_bytecode *bc, int span, long old_val,
105 bc_org_expand(yasm_bytecode *bc, int span, long old_val, long new_val, in bc_org_expand() argument
Dbytecode.c66 yasm_bc_expand_common(yasm_bytecode *bc, int span, long old_val, long new_val, in yasm_bc_expand_common() argument
284 yasm_bc_expand(yasm_bytecode *bc, int span, long old_val, long new_val, in yasm_bc_expand() argument
296 return bc->callback->expand(bc, span, old_val, new_val, neg_thres, in yasm_bc_expand()
Dbc-align.c57 static int bc_align_expand(yasm_bytecode *bc, int span, long old_val,
134 bc_align_expand(yasm_bytecode *bc, int span, long old_val, long new_val, in bc_align_expand() argument
/external/chromium_org/third_party/yasm/source/patched-yasm/modules/objfmts/coff/
Dwin64-except.c46 static int win64_uwinfo_bc_expand(yasm_bytecode *bc, int span, long old_val,
61 static int win64_uwcode_bc_expand(yasm_bytecode *bc, int span, long old_val,
254 win64_uwinfo_bc_expand(yasm_bytecode *bc, int span, long old_val, long new_val, in win64_uwinfo_bc_expand() argument
423 win64_uwcode_bc_expand(yasm_bytecode *bc, int span, long old_val, long new_val, in win64_uwcode_bc_expand() argument
/external/chromium_org/third_party/yasm/source/patched-yasm/modules/arch/lc3b/
Dlc3bbc.c42 static int lc3b_bc_insn_expand(yasm_bytecode *bc, int span, long old_val,
160 lc3b_bc_insn_expand(yasm_bytecode *bc, int span, long old_val, long new_val, in lc3b_bc_insn_expand() argument
/external/llvm/examples/OCaml-Kaleidoscope/Chapter5/
Dcodegen.ml122 let old_val =
163 begin match old_val with
164 | Some old_val -> Hashtbl.add named_values var_name old_val
/external/llvm/include/llvm/
DPassSupport.h38 sys::cas_flag old_val = sys::CompareAndSwap(&initialized, 1, 0); \
39 if (old_val == 0) { \
/external/chromium_org/third_party/tcmalloc/vendor/src/
Dmalloc_hook.cc168 PtrT old_val = reinterpret_cast<PtrT>(static_cast<AtomicWord>( in Exchange() local
173 return old_val; in Exchange()
177 PtrT AtomicPtr<PtrT>::CompareAndSwap(PtrT old_val, PtrT new_val) { in CompareAndSwap() argument
182 reinterpret_cast<AtomicWord>(old_val), in CompareAndSwap()
Dmalloc_hook-inl.h83 PtrT CompareAndSwap(PtrT old_val, PtrT new_val);
/external/chromium_org/third_party/tcmalloc/chromium/src/
Dmalloc_hook.cc168 PtrT old_val = reinterpret_cast<PtrT>(static_cast<AtomicWord>( in Exchange() local
173 return old_val; in Exchange()
177 PtrT AtomicPtr<PtrT>::CompareAndSwap(PtrT old_val, PtrT new_val) { in CompareAndSwap() argument
182 reinterpret_cast<AtomicWord>(old_val), in CompareAndSwap()
Dmalloc_hook-inl.h83 PtrT CompareAndSwap(PtrT old_val, PtrT new_val);
/external/llvm/examples/OCaml-Kaleidoscope/Chapter6/
Dcodegen.ml140 let old_val =
181 begin match old_val with
182 | Some old_val -> Hashtbl.add named_values var_name old_val
/external/compiler-rt/lib/asan/
Dasan_thread.cc120 uptr old_val = 0; in AsyncSignalSafeLazyInitFakeStack() local
128 reinterpret_cast<atomic_uintptr_t *>(&fake_stack_), &old_val, 1UL, in AsyncSignalSafeLazyInitFakeStack()
/external/llvm/examples/OCaml-Kaleidoscope/Chapter7/
Dcodegen.ml193 let old_val =
234 begin match old_val with
235 | Some old_val -> Hashtbl.add named_values var_name old_val
/external/chromium_org/third_party/yasm/source/patched-yasm/modules/arch/x86/
Dx86bc.c42 static int x86_bc_insn_expand(yasm_bytecode *bc, int span, long old_val,
55 static int x86_bc_jmp_expand(yasm_bytecode *bc, int span, long old_val,
629 x86_bc_insn_expand(yasm_bytecode *bc, int span, long old_val, long new_val, in x86_bc_insn_expand() argument
734 x86_bc_jmp_expand(yasm_bytecode *bc, int span, long old_val, long new_val, in x86_bc_jmp_expand() argument
/external/llvm/docs/tutorial/
DOCamlLangImpl5.rst587 let old_val =
606 potentially shadowing in ``old_val`` (which will be None if there is no
670 begin match old_val with
671 | Some old_val -> Hashtbl.add named_values var_name old_val
1134 let old_val =
1175 begin match old_val with
1176 | Some old_val -> Hashtbl.add named_values var_name old_val
/external/valgrind/main/memcheck/
Dmc_errors.c282 SizeT current_val, SizeT old_val, in MC_()
287 else if (current_val >= old_val) in MC_()
288 VG_(snprintf) (buf, size, " (+%'lu)", current_val - old_val); in MC_()
290 VG_(snprintf) (buf, size, " (-%'lu)", old_val - current_val); in MC_()

12