Searched refs:newval (Results 1 - 25 of 64) sorted by relevance

123

/external/linux-kselftest/tools/testing/selftests/futex/include/
H A Datomic.h35 * @newval: The new value to try and assign the futex
40 atomic_cmpxchg(atomic_t *addr, int oldval, int newval) argument
42 return __sync_val_compare_and_swap(&addr->val, oldval, newval);
72 * @newval: New value for the atomic_t
77 atomic_set(atomic_t *addr, int newval) argument
79 addr->val = newval;
80 return newval;
H A Dfutextest.h215 * @newval: The new value to try and assign the futex
223 futex_cmpxchg(futex_t *uaddr, u_int32_t oldval, u_int32_t newval) argument
225 return __sync_val_compare_and_swap(uaddr, oldval, newval);
255 * @newval: New value for the atomic_t
260 futex_set(futex_t *uaddr, u_int32_t newval) argument
262 *uaddr = newval;
263 return newval;
/external/swiftshader/third_party/subzero/crosstest/
H A Dtest_sync_atomic.h26 type test_val_cmp_swap(volatile type *ptr, type oldval, type newval); \
27 type test_val_cmp_swap_loop(volatile type *ptr, type oldval, type newval);
H A Dtest_sync_atomic.cpp59 type test_val_cmp_swap(volatile type *ptr, type oldval, type newval) { \
60 return __sync_val_compare_and_swap(ptr, oldval, newval); \
62 type test_val_cmp_swap_loop(volatile type *ptr, type oldval, type newval) { \
66 prev = __sync_val_compare_and_swap(ptr, oldval, newval); \
/external/ltp/testcases/kernel/syscalls/sysctl/
H A Dsysctl05.c65 void *newval, size_t newlen)
68 { name, nlen, oldval, oldlenp, newval, newlen };
84 void *newval; member in struct:testcases
122 testcases[i].newval, testcases[i].newlen));
64 sysctl(int *name, int nlen, void *oldval, size_t * oldlenp, void *newval, size_t newlen) argument
H A Dsysctl01.c62 void *newval, size_t newlen)
65 { name, nlen, oldval, oldlenp, newval, newlen };
82 void *newval; member in struct:test_case_t
131 TC[i].oldlen, TC[i].newval, TC[i].newlen));
61 sysctl(int *name, int nlen, void *oldval, size_t * oldlenp, void *newval, size_t newlen) argument
H A Dsysctl04.c63 void *newval, size_t newlen)
66 { name, nlen, oldval, oldlenp, newval, newlen };
62 sysctl(int *name, int nlen, void *oldval, size_t * oldlenp, void *newval, size_t newlen) argument
H A Dsysctl03.c82 void *newval, size_t newlen)
85 { name, nlen, oldval, oldlenp, newval, newlen };
81 sysctl(int *name, int nlen, void *oldval, size_t * oldlenp, void *newval, size_t newlen) argument
/external/selinux/python/sepolicy/
H A Dsepolicy.py68 newval = getattr(namespace, self.dest)
69 if not newval:
70 newval = []
73 newval.append(v)
74 setattr(namespace, self.dest, newval)
81 newval = getattr(namespace, self.dest)
82 if not newval:
83 newval = []
89 newval.append(v)
90 setattr(namespace, self.dest, newval)
[all...]
/external/curl/lib/
H A Dstrtoofft.c84 curl_off_t newval; local
135 newval = base * value + i;
136 if(newval < value) {
142 value = newval;
/external/libchrome/base/memory/
H A Dsingleton.h260 Type* newval = Traits::New(); local
264 reinterpret_cast<subtle::AtomicWord>(newval));
266 if (newval != NULL && Traits::kRegisterAtExit)
269 return newval;
/external/strace/
H A Dsysctl.c64 info.oldlenp, info.newval, (unsigned long)info.newlen);
182 if (info.newval == NULL)
185 tprintf("%p", info.newval);
187 printpath(tcp, ptr_to_kulong(info.newval));
/external/toybox/kconfig/
H A Dsymbol.c265 struct symbol_value newval, oldval; local
282 newval = symbol_empty.curr;
286 newval = symbol_no.curr;
299 sym->curr = newval;
306 newval.tri = (prop_get_symbol(prop)->curr.val == sym) ? yes : no;
310 newval.tri = sym->def[S_DEF_USER].tri;
314 newval.tri = expr_calc_value(prop->expr);
316 newval.tri = E_OR(E_AND(newval.tri, sym->visible), sym->rev_dep.tri);
321 newval
464 tristate oldval, newval; local
570 sym_set_string_value(struct symbol *sym, const char *newval) argument
[all...]
H A Dlkc_proto.h30 P(sym_string_valid,bool,(struct symbol *sym, const char *newval));
32 P(sym_set_string_value,bool,(struct symbol *sym, const char *newval));
H A Dconf.c209 tristate oldval, newval; local
245 newval = no;
251 newval = mod;
257 newval = yes;
262 newval = oldval;
269 if (sym_set_tristate_value(sym, newval))
/external/python/cpython3/Lib/tkinter/test/test_ttk/
H A Dtest_extensions.py151 newval = x.value + 1
152 x.value = newval
156 self.assertEqual(x.value, newval)
158 newval if self.wantobjects else str(newval))
159 self.assertEqual(float(x.scale.get()), newval)
171 self.assertEqual(x.value, newval)
172 self.assertEqual(conv(x.label['text']), newval)
173 self.assertEqual(float(x.scale.get()), newval)
178 x.value = newval
[all...]
/external/ltp/testcases/kernel/syscalls/futex/
H A Dfutextest.h246 * @newval: The new value to try and assign the futex
254 futex_cmpxchg(futex_t *uaddr, u_int32_t oldval, u_int32_t newval) argument
256 return __sync_val_compare_and_swap(uaddr, oldval, newval);
286 * @newval: New value for the atomic_t
291 futex_set(futex_t *uaddr, u_int32_t newval) argument
293 *uaddr = newval;
294 return newval;
/external/mesa3d/src/mesa/main/
H A Dscissor.c218 struct gl_scissor_rect newval[MAX_WINDOW_RECTANGLES]; local
249 newval[i].X = box[0];
250 newval[i].Y = box[1];
251 newval[i].Width = box[2];
252 newval[i].Height = box[3];
257 memcpy(ctx->Scissor.WindowRects, newval,
/external/eigen/unsupported/Eigen/CXX11/src/Tensor/
H A DTensorReductionCuda.h30 unsigned int newval = oldval; local
31 reducer.reduce(accum, reinterpret_cast<T*>(&newval));
32 if (newval == oldval) {
36 while ((readback = atomicCAS((unsigned int*)output, oldval, newval)) != oldval) {
38 newval = oldval;
39 reducer.reduce(accum, reinterpret_cast<T*>(&newval));
40 if (newval == oldval) {
47 unsigned long long newval = oldval; local
48 reducer.reduce(accum, reinterpret_cast<T*>(&newval));
49 if (newval
86 unsigned int newval = oldval; local
[all...]
/external/autotest/client/site_tests/network_EthernetStressPlug/
H A Dnetwork_EthernetStressPlug.py235 newval = val | 1
237 newval = val & ~1
239 if val != newval:
242 fp.write('0x%x' % newval)
246 (newval, self.eth_flagspath))
247 logging.debug("eth flags: 0x%x to 0x%x" % (val, newval))
/external/pdfium/core/fxcrt/
H A Dcfx_decimal.cpp274 float newval = fabs(val); local
278 plo = static_cast<uint64_t>(newval);
279 pmid = static_cast<uint64_t>(newval / 1e32);
280 phi = static_cast<uint64_t>(newval / 1e64);
281 newval = fmod(newval, 1.0f);
284 newval *= 10;
285 plo += static_cast<uint64_t>(newval);
286 newval = fmod(newval, 1.
[all...]
/external/mesa3d/src/gallium/drivers/radeonsi/glsl_tests/
H A Damdgcn_glslc.c176 char *newval; local
177 (void)!asprintf(&newval, "%s,%s", orig, value);
178 setenv(name, newval, 1);
179 free(newval);
/external/compiler-rt/test/tsan/
H A Dreal_deadlock_detector_stress_test.cc36 bool cas(int *a, int oldval, int newval) { argument
37 return __atomic_compare_exchange_n(a, &oldval, newval, false,
/external/v8/src/runtime/
H A Druntime-atomics.cc29 inline T CompareExchangeSeqCst(T* p, T oldval, T newval) { argument
30 (void)__atomic_compare_exchange_n(p, &oldval, newval, 0, __ATOMIC_SEQ_CST,
103 inline type CompareExchangeSeqCst(type* p, type oldval, type newval) { \
105 bit_cast<vctype>(newval), \
194 T newval = FromObject<T>(newobj); local
196 CompareExchangeSeqCst(static_cast<T*>(buffer) + index, oldval, newval);
270 uint8_t newval = ClampToUint8(FromObject<convert_type>(newobj)); local
272 oldval, newval);
/external/python/cpython2/Lib/lib-tk/test/test_ttk/
H A Dtest_extensions.py155 newval = x.value + 1
156 x.value = newval
161 newval if self.wantobjects else str(newval))
173 self.assertEqual(conv(x.label['text']), newval)

Completed in 2492 milliseconds

123