Home
last modified time | relevance | path

Searched refs:old_value (Results 1 – 25 of 39) sorted by relevance

12

/external/chromium/base/
Datomicops_internals_x86_macosx.h17 Atomic32 old_value, in NoBarrier_CompareAndSwap() argument
21 if (OSAtomicCompareAndSwap32(old_value, new_value, in NoBarrier_CompareAndSwap()
23 return old_value; in NoBarrier_CompareAndSwap()
26 } while (prev_value == old_value); in NoBarrier_CompareAndSwap()
32 Atomic32 old_value; in NoBarrier_AtomicExchange() local
34 old_value = *ptr; in NoBarrier_AtomicExchange()
35 } while (!OSAtomicCompareAndSwap32(old_value, new_value, in NoBarrier_AtomicExchange()
37 return old_value; in NoBarrier_AtomicExchange()
55 Atomic32 old_value, in Acquire_CompareAndSwap() argument
59 if (OSAtomicCompareAndSwap32Barrier(old_value, new_value, in Acquire_CompareAndSwap()
[all …]
Datomicops_internals_arm_gcc.h21 typedef Atomic32 (*LinuxKernelCmpxchgFunc)(Atomic32 old_value,
33 Atomic32 old_value, in NoBarrier_CompareAndSwap() argument
37 if (!pLinuxKernelCmpxchg(old_value, new_value, in NoBarrier_CompareAndSwap()
39 return old_value; in NoBarrier_CompareAndSwap()
42 } while (prev_value == old_value); in NoBarrier_CompareAndSwap()
48 Atomic32 old_value; in NoBarrier_AtomicExchange() local
50 old_value = *ptr; in NoBarrier_AtomicExchange()
51 } while (pLinuxKernelCmpxchg(old_value, new_value, in NoBarrier_AtomicExchange()
53 return old_value; in NoBarrier_AtomicExchange()
65 Atomic32 old_value = *ptr; in Barrier_AtomicIncrement() local
[all …]
Datomicops_internals_x86_msvc.h17 Atomic32 old_value, in NoBarrier_CompareAndSwap() argument
22 static_cast<LONG>(old_value)); in NoBarrier_CompareAndSwap()
55 Atomic32 old_value, in Acquire_CompareAndSwap() argument
57 return NoBarrier_CompareAndSwap(ptr, old_value, new_value); in Acquire_CompareAndSwap()
61 Atomic32 old_value, in Release_CompareAndSwap() argument
63 return NoBarrier_CompareAndSwap(ptr, old_value, new_value); in Release_CompareAndSwap()
101 Atomic64 old_value, in NoBarrier_CompareAndSwap() argument
105 reinterpret_cast<PVOID>(new_value), reinterpret_cast<PVOID>(old_value)); in NoBarrier_CompareAndSwap()
164 Atomic64 old_value, in Acquire_CompareAndSwap() argument
166 return NoBarrier_CompareAndSwap(ptr, old_value, new_value); in Acquire_CompareAndSwap()
[all …]
Datomicops_internals_x86_gcc.h30 Atomic32 old_value, in NoBarrier_CompareAndSwap() argument
35 : "q" (new_value), "m" (*ptr), "0" (old_value) in NoBarrier_CompareAndSwap()
73 Atomic32 old_value, in Acquire_CompareAndSwap() argument
75 Atomic32 x = NoBarrier_CompareAndSwap(ptr, old_value, new_value); in Acquire_CompareAndSwap()
83 Atomic32 old_value, in Release_CompareAndSwap() argument
85 return NoBarrier_CompareAndSwap(ptr, old_value, new_value); in Release_CompareAndSwap()
154 Atomic64 old_value, in NoBarrier_CompareAndSwap() argument
159 : "q" (new_value), "m" (*ptr), "0" (old_value) in NoBarrier_CompareAndSwap()
244 Atomic64 old_value, in Acquire_CompareAndSwap() argument
246 Atomic64 x = NoBarrier_CompareAndSwap(ptr, old_value, new_value); in Acquire_CompareAndSwap()
[all …]
Datomicops_internals_atomicword_compat.h28 AtomicWord old_value, in NoBarrier_CompareAndSwap() argument
31 reinterpret_cast<volatile Atomic32*>(ptr), old_value, new_value); in NoBarrier_CompareAndSwap()
53 AtomicWord old_value, in Acquire_CompareAndSwap() argument
56 reinterpret_cast<volatile Atomic32*>(ptr), old_value, new_value); in Acquire_CompareAndSwap()
60 AtomicWord old_value, in Release_CompareAndSwap() argument
63 reinterpret_cast<volatile Atomic32*>(ptr), old_value, new_value); in Release_CompareAndSwap()
Datomicops.h70 Atomic32 old_value,
94 Atomic32 old_value,
97 Atomic32 old_value,
112 Atomic64 old_value,
119 Atomic64 old_value,
122 Atomic64 old_value,
/external/v8/src/
Datomicops_internals_x86_macosx.h39 Atomic32 old_value, in NoBarrier_CompareAndSwap() argument
43 if (OSAtomicCompareAndSwap32(old_value, new_value, in NoBarrier_CompareAndSwap()
45 return old_value; in NoBarrier_CompareAndSwap()
48 } while (prev_value == old_value); in NoBarrier_CompareAndSwap()
54 Atomic32 old_value; in NoBarrier_AtomicExchange() local
56 old_value = *ptr; in NoBarrier_AtomicExchange()
57 } while (!OSAtomicCompareAndSwap32(old_value, new_value, in NoBarrier_AtomicExchange()
59 return old_value; in NoBarrier_AtomicExchange()
77 Atomic32 old_value, in Acquire_CompareAndSwap() argument
81 if (OSAtomicCompareAndSwap32Barrier(old_value, new_value, in Acquire_CompareAndSwap()
[all …]
Datomicops_internals_arm_gcc.h43 typedef Atomic32 (*LinuxKernelCmpxchgFunc)(Atomic32 old_value,
55 Atomic32 old_value, in NoBarrier_CompareAndSwap() argument
59 if (!pLinuxKernelCmpxchg(old_value, new_value, in NoBarrier_CompareAndSwap()
61 return old_value; in NoBarrier_CompareAndSwap()
64 } while (prev_value == old_value); in NoBarrier_CompareAndSwap()
70 Atomic32 old_value; in NoBarrier_AtomicExchange() local
72 old_value = *ptr; in NoBarrier_AtomicExchange()
73 } while (pLinuxKernelCmpxchg(old_value, new_value, in NoBarrier_AtomicExchange()
75 return old_value; in NoBarrier_AtomicExchange()
87 Atomic32 old_value = *ptr; in Barrier_AtomicIncrement() local
[all …]
Datomicops_internals_x86_msvc.h40 Atomic32 old_value, in NoBarrier_CompareAndSwap() argument
45 static_cast<LONG>(old_value)); in NoBarrier_CompareAndSwap()
78 Atomic32 old_value, in Acquire_CompareAndSwap() argument
80 return NoBarrier_CompareAndSwap(ptr, old_value, new_value); in Acquire_CompareAndSwap()
84 Atomic32 old_value, in Release_CompareAndSwap() argument
86 return NoBarrier_CompareAndSwap(ptr, old_value, new_value); in Release_CompareAndSwap()
124 Atomic64 old_value, in NoBarrier_CompareAndSwap() argument
128 reinterpret_cast<PVOID>(new_value), reinterpret_cast<PVOID>(old_value)); in NoBarrier_CompareAndSwap()
187 Atomic64 old_value, in Acquire_CompareAndSwap() argument
189 return NoBarrier_CompareAndSwap(ptr, old_value, new_value); in Acquire_CompareAndSwap()
[all …]
Datomicops_internals_x86_gcc.h52 Atomic32 old_value, in NoBarrier_CompareAndSwap() argument
57 : "q" (new_value), "m" (*ptr), "0" (old_value) in NoBarrier_CompareAndSwap()
95 Atomic32 old_value, in Acquire_CompareAndSwap() argument
97 Atomic32 x = NoBarrier_CompareAndSwap(ptr, old_value, new_value); in Acquire_CompareAndSwap()
105 Atomic32 old_value, in Release_CompareAndSwap() argument
107 return NoBarrier_CompareAndSwap(ptr, old_value, new_value); in Release_CompareAndSwap()
176 Atomic64 old_value, in NoBarrier_CompareAndSwap() argument
181 : "q" (new_value), "m" (*ptr), "0" (old_value) in NoBarrier_CompareAndSwap()
266 Atomic64 old_value, in Acquire_CompareAndSwap() argument
268 Atomic64 x = NoBarrier_CompareAndSwap(ptr, old_value, new_value); in Acquire_CompareAndSwap()
[all …]
Datomicops_internals_mips_gcc.h49 Atomic32 old_value, in NoBarrier_CompareAndSwap() argument
64 : "Ir" (old_value), "r" (new_value), "m" (*ptr) in NoBarrier_CompareAndSwap()
127 Atomic32 old_value, in Acquire_CompareAndSwap() argument
130 Atomic32 res = NoBarrier_CompareAndSwap(ptr, old_value, new_value); in Acquire_CompareAndSwap()
136 Atomic32 old_value, in Release_CompareAndSwap() argument
139 Atomic32 res = NoBarrier_CompareAndSwap(ptr, old_value, new_value); in Release_CompareAndSwap()
Datomicops.h85 Atomic32 old_value,
109 Atomic32 old_value,
112 Atomic32 old_value,
127 Atomic64 old_value,
134 Atomic64 old_value,
137 Atomic64 old_value,
/external/llvm/include/llvm/Support/
DSaveAndRestore.h24 SaveAndRestore(T& x) : X(x), old_value(x) {} in SaveAndRestore()
25 SaveAndRestore(T& x, const T &new_value) : X(x), old_value(x) { in SaveAndRestore()
28 ~SaveAndRestore() { X = old_value; } in ~SaveAndRestore()
29 T get() { return old_value; } in get()
32 T old_value; member
39 SaveOr(bool& x) : X(x), old_value(x) { x = false; } in SaveOr()
40 ~SaveOr() { X |= old_value; } in ~SaveOr()
43 const bool old_value; member
/external/compiler-rt/BlocksRuntime/
Druntime.c105 unsigned long int old_value = *(volatile unsigned long int *)where;
106 if ((old_value & BLOCK_REFCOUNT_MASK) == BLOCK_REFCOUNT_MASK) {
109 if (OSAtomicCompareAndSwapLong(old_value, old_value+1, (volatile long int *)where)) {
110 return old_value+1;
118 int old_value = *(volatile int *)where; in latching_incr_int() local
119 if ((old_value & BLOCK_REFCOUNT_MASK) == BLOCK_REFCOUNT_MASK) { in latching_incr_int()
122 if (OSAtomicCompareAndSwapInt(old_value, old_value+1, (volatile int *)where)) { in latching_incr_int()
123 return old_value+1; in latching_incr_int()
131 unsigned long int old_value = *(volatile int *)where;
132 if ((old_value & BLOCK_REFCOUNT_MASK) == BLOCK_REFCOUNT_MASK) {
[all …]
/external/webrtc/src/system_wrappers/interface/
Dstatic_instance.h131 T* old_value = static_cast<T*> (InterlockedExchangePointer( in GetStaticInstance() local
133 assert(old_value == NULL); in GetStaticInstance()
142 T* old_value = static_cast<T*> (InterlockedExchangePointer( in GetStaticInstance() local
144 if (old_value) { in GetStaticInstance()
145 delete static_cast<T*>(old_value); in GetStaticInstance()
/external/chromium/chrome/common/
Djson_pref_store.cc166 Value* old_value = NULL; in SetValue() local
167 prefs_->Get(key, &old_value); in SetValue()
168 if (!old_value || !value->Equals(old_value)) { in SetValue()
177 Value* old_value = NULL; in SetValueSilently() local
178 prefs_->Get(key, &old_value); in SetValueSilently()
179 if (!old_value || !value->Equals(old_value)) in SetValueSilently()
/external/llvm/lib/Support/
DAtomic.cpp43 sys::cas_flag old_value) { in CompareAndSwap() argument
46 if (result == old_value) in CompareAndSwap()
50 return __atomic_cmpxchg(old_value, new_value, (volatile int*)ptr); in CompareAndSwap()
52 return __sync_val_compare_and_swap(ptr, old_value, new_value); in CompareAndSwap()
54 return InterlockedCompareExchange(ptr, new_value, old_value); in CompareAndSwap()
/external/llvm/unittests/Support/
DCommandLineTest.cpp26 const char *old_value = getenv(name); in TempEnvVar() local
27 EXPECT_EQ(NULL, old_value) << old_value; in TempEnvVar()
/external/chromium/chrome/browser/chromeos/login/
Dwizard_accessibility_handler.cc280 std::string old_value = previous_text_value_; in DescribeTextChanged() local
287 if (new_value == old_value) { in DescribeTextChanged()
293 DescribeTextContentsChanged(old_value, new_value, in DescribeTextChanged()
369 const std::string& old_value, in DescribeTextContentsChanged() argument
372 int old_array_len = old_value.size(); in DescribeTextContentsChanged()
379 base::i18n::UTF8CharIterator old_iter(&old_value); in DescribeTextContentsChanged()
422 std::string deleted = old_value.substr( in DescribeTextContentsChanged()
/external/webkit/WebKitLibraries/win/tools/scripts/
Dauto-version.sh30 local old_value=$(eval echo "\$$1");
31 local value=$(echo "$old_value" | sed 's/[\r\n]*$//')
/external/libpng/contrib/pngminus/
Dpnm2png.c479 static int old_value = 0; in get_data() local
490 old_value = fgetc (pnm_file); in get_data()
494 ret_value = old_value & mask; in get_data()
498 old_value = (old_value << depth) & 0xFF; in get_data()
/external/chromium/chrome/browser/prefs/
Dscoped_user_pref_update_unittest.cc71 const DictionaryValue* old_value = prefs_.GetDictionary(kPref); in TEST_F() local
77 EXPECT_EQ(old_value, new_value); in TEST_F()
/external/valgrind/tsan/
Dts_lock.h77 uintptr_t old_value = *ptr; in AtomicExchange() local
79 return old_value; in AtomicExchange()
/external/chromium/third_party/libjingle/source/talk/p2p/base/
Dport.cc534 ReadState old_value = read_state_; in set_read_state() local
536 if (value != old_value) { in set_read_state()
544 WriteState old_value = write_state_; in set_write_state() local
546 if (value != old_value) { in set_write_state()
554 bool old_value = connected_; in set_connected() local
556 if (value != old_value) { in set_connected()
/external/bluetooth/bluez/src/
Dstorage.c434 char *old_value; in write_features_info() local
442 old_value = textfile_get(filename, addr); in write_features_info()
447 else if (old_value && strlen(old_value) >= 16) in write_features_info()
448 strncpy(str, old_value, 16); in write_features_info()
453 else if (old_value && strlen(old_value) >= 33) in write_features_info()
454 strncpy(str + 17, old_value + 17, 16); in write_features_info()
456 free(old_value); in write_features_info()

12