Home
last modified time | relevance | path

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

12

/third_party/toybox/kconfig/
H A Dsymbol.c267 struct symbol_value newval, oldval; in sym_calc_value() local
284 newval = symbol_empty.curr; in sym_calc_value()
288 newval = symbol_no.curr; in sym_calc_value()
301 sym->curr = newval; in sym_calc_value()
308 newval.tri = (prop_get_symbol(prop)->curr.val == sym) ? yes : no; in sym_calc_value()
312 newval.tri = sym->def[S_DEF_USER].tri; in sym_calc_value()
316 newval.tri = expr_calc_value(prop->expr); in sym_calc_value()
318 newval.tri = E_OR(E_AND(newval.tri, sym->visible), sym->rev_dep.tri); in sym_calc_value()
323 newval in sym_calc_value()
466 tristate oldval, newval; sym_toggle_tristate_value() local
572 sym_set_string_value(struct symbol *sym, const char *newval) sym_set_string_value() argument
[all...]
H A Dconf.c209 tristate oldval, newval; in conf_sym() local
245 newval = no; in conf_sym()
251 newval = mod; in conf_sym()
257 newval = yes; in conf_sym()
262 newval = oldval; in conf_sym()
269 if (sym_set_tristate_value(sym, newval)) in conf_sym()
/third_party/node/deps/uv/src/unix/
H A Datomic-ops.h25 UV_UNUSED(static int cmpxchgi(int* ptr, int oldval, int newval));
31 UV_UNUSED(static int cmpxchgi(int* ptr, int oldval, int newval)) { in UV_UNUSED() argument
36 : "r" (newval), "0" (oldval) in UV_UNUSED()
43 __asm(" cs %0,%2,%1 \n " : "+r"(oldval), "+m"(*ptr) : "r"(newval) :); in UV_UNUSED()
46 return atomic_cas_uint((uint_t *)ptr, (uint_t)oldval, (uint_t)newval); in UV_UNUSED()
48 return __sync_val_compare_and_swap(ptr, oldval, newval); in UV_UNUSED()
H A Drandom-sysctl-linux.c37 void* newval; member
/third_party/python/Python/
H A Dast_opt.c112 PyObject *newval = ops[node->v.UnaryOp.op](arg->v.Constant.value); in fold_unaryop() local
113 return make_const(node, newval, arena); in fold_unaryop()
468 PyObject *newval = NULL; in fold_binop() local
472 newval = PyNumber_Add(lv, rv); in fold_binop()
475 newval = PyNumber_Subtract(lv, rv); in fold_binop()
478 newval = safe_multiply(lv, rv); in fold_binop()
481 newval = PyNumber_TrueDivide(lv, rv); in fold_binop()
484 newval = PyNumber_FloorDivide(lv, rv); in fold_binop()
487 newval = safe_mod(lv, rv); in fold_binop()
490 newval in fold_binop()
527 PyObject *newval = PyTuple_New(asdl_seq_LEN(elts)); make_const_tuple() local
544 PyObject *newval; fold_tuple() local
556 PyObject *newval; fold_subscr() local
581 PyObject *newval; fold_iter() local
[all...]
/third_party/python/Lib/tkinter/test/test_ttk/
H A Dtest_extensions.py137 newval = x.value + 1
138 x.value = newval
142 self.assertEqual(x.value, newval)
144 newval if self.wantobjects else str(newval))
145 self.assertEqual(float(x.scale.get()), newval)
157 self.assertEqual(x.value, newval)
158 self.assertEqual(conv(x.label['text']), newval)
159 self.assertEqual(float(x.scale.get()), newval)
164 x.value = newval
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/subzero/crosstest/
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); \
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);
/third_party/ltp/testcases/kernel/syscalls/futex/
H A Dfutextest.h229 * @newval: The new value to try and assign the futex
237 futex_cmpxchg(futex_t *uaddr, u_int32_t oldval, u_int32_t newval) in futex_cmpxchg() argument
239 return __sync_val_compare_and_swap(uaddr, oldval, newval); in futex_cmpxchg()
269 * @newval: New value for the atomic_t
274 futex_set(futex_t *uaddr, u_int32_t newval) in futex_set() argument
276 *uaddr = newval; in futex_set()
277 return newval; in futex_set()
/third_party/curl/lib/
H A Dstrtoofft.c86 curl_off_t newval; in strtooff() local
137 newval = base * value + i; in strtooff()
138 if(newval < value) { in strtooff()
144 value = newval; in strtooff()
/third_party/mesa3d/src/mesa/main/
H A Dscissor.c263 struct gl_scissor_rect newval[MAX_WINDOW_RECTANGLES]; in _mesa_WindowRectanglesEXT() local
294 newval[i].X = box[0]; in _mesa_WindowRectanglesEXT()
295 newval[i].Y = box[1]; in _mesa_WindowRectanglesEXT()
296 newval[i].Width = box[2]; in _mesa_WindowRectanglesEXT()
297 newval[i].Height = box[3]; in _mesa_WindowRectanglesEXT()
306 memcpy(ctx->Scissor.WindowRects, newval, in _mesa_WindowRectanglesEXT()
/third_party/mesa3d/src/gallium/drivers/radeonsi/glsl_tests/
H A Damdgcn_glslc.c177 char *newval; in addenv() local
178 (void)!asprintf(&newval, "%s,%s", orig, value); in addenv()
179 setenv(name, newval, 1); in addenv()
180 free(newval); in addenv()
/third_party/ffmpeg/libavutil/
H A Ddict.c117 char *newval = av_mallocz(len); in av_dict_set() local
118 if (!newval) in av_dict_set()
120 av_strlcat(newval, oldval, len); in av_dict_set()
122 av_strlcat(newval, copy_value, len); in av_dict_set()
123 m->elems[m->count].value = newval; in av_dict_set()
/third_party/node/deps/openssl/openssl/crypto/bio/
H A Dbio_meth.c25 int newval; in BIO_get_new_index() local
31 if (!CRYPTO_UP_REF(&bio_count, &newval, bio_type_lock)) in BIO_get_new_index()
33 return newval; in BIO_get_new_index()
/third_party/openssl/crypto/bio/
H A Dbio_meth.c25 int newval; in BIO_get_new_index() local
31 if (!CRYPTO_UP_REF(&bio_count, &newval, bio_type_lock)) in BIO_get_new_index()
33 return newval; in BIO_get_new_index()
/third_party/mesa3d/src/util/
H A Du_atomic.c105 __sync_val_compare_and_swap_8(uint64_t *ptr, uint64_t oldval, uint64_t newval) in __sync_val_compare_and_swap_8() argument
112 *ptr = newval; in __sync_val_compare_and_swap_8()
/third_party/pulseaudio/src/modules/rtp/
H A Dheaderlist.c96 void *newval = pa_sprintf_malloc("%s%s", (char*)hdr->value, value); in pa_headerlist_putsappend() local
98 hdr->value = newval; in pa_headerlist_putsappend()
/third_party/node/deps/v8/src/runtime/
H A Druntime-atomics.cc36 inline T CompareExchangeSeqCst(T* p, T oldval, T newval) { in CompareExchangeSeqCst() argument
91 inline T CompareExchangeSeqCst(T* p, T oldval, T newval) {
92 (void)__atomic_compare_exchange_n(p, &oldval, newval, 0, __ATOMIC_SEQ_CST,
148 inline type CompareExchangeSeqCst(type* p, type oldval, type newval) { \
150 bit_cast<vctype>(newval), \
314 T newval = FromObject<T>(newobj); in DoCompareExchange() local
316 CompareExchangeSeqCst(static_cast<T*>(buffer) + index, oldval, newval); in DoCompareExchange()
/third_party/mksh/
H A Dmisc.c248 unsigned char newval = (newset ? 1 : 0); in change_flag() local
251 change_xtrace(newval, true); in change_flag()
257 else if (!newval) { in change_flag()
294 } else if ((f == FPOSIX || f == FSH) && newval) { in change_flag()
306 f == FGMACS) && newval) { in change_flag()
315 Flag(f) = newval; in change_flag()
320 Flag(FTALKING_I) = newval; in change_flag()
323 if (what != OF_CMDLINE && newval != oldval) in change_flag()
330 change_xtrace(unsigned char newval, bool dosnapshot) in change_xtrace() argument
337 if (!dosnapshot && newval in change_xtrace()
[all...]
/third_party/backends/backend/
H A Dhp-option.c1739 int k, val, newval; in _simulate_brightness() local
1755 newval = k + val; in _simulate_brightness()
1756 if (newval < 0) newval = 0; else if (newval > 255) newval = 255; in _simulate_brightness()
1757 brightness_map[k] = (unsigned char)newval; in _simulate_brightness()
1797 int k, val, newval; in _simulate_contrast() local
1813 newval = hp_contrast (k, val); in _simulate_contrast()
1814 if (newval < in _simulate_contrast()
1936 int k, newval; _simulate_custom_gamma() local
[all...]
/third_party/python/Modules/
H A Daudioop.c1086 int minval, maxval, newval; in audioop_add_impl() local
1110 newval = val1 + val2; in audioop_add_impl()
1112 if (newval > maxval) in audioop_add_impl()
1113 newval = maxval; in audioop_add_impl()
1114 else if (newval < minval) in audioop_add_impl()
1115 newval = minval; in audioop_add_impl()
1120 newval = fbound(fval, minval, maxval); in audioop_add_impl()
1123 SETRAWSAMPLE(width, ncp, i, newval); in audioop_add_impl()
H A D_collectionsmodule.c2289 PyObject *newval = NULL; in _collections__count_elements_impl() local
2346 newval = PyNumber_Add(oldval, one); in _collections__count_elements_impl()
2347 if (newval == NULL) in _collections__count_elements_impl()
2349 if (_PyDict_SetItem_KnownHash(mapping, key, newval, hash) < 0) in _collections__count_elements_impl()
2351 Py_CLEAR(newval); in _collections__count_elements_impl()
2369 newval = PyNumber_Add(oldval, one); in _collections__count_elements_impl()
2371 if (newval == NULL) in _collections__count_elements_impl()
2373 if (PyObject_SetItem(mapping, key, newval) < 0) in _collections__count_elements_impl()
2375 Py_CLEAR(newval); in _collections__count_elements_impl()
2383 Py_XDECREF(newval); in _collections__count_elements_impl()
[all...]
/third_party/libuv/src/unix/
H A Drandom-sysctl-linux.c37 void* newval; member
/third_party/ltp/testcases/kernel/syscalls/sysctl/
H A Dsysctl03.c51 .newval = osname, in verify_sysctl()
/third_party/ffmpeg/libavcodec/
H A Dqdmc.c362 int ch, j, k, v, idx, band, lastval, newval, len; in read_noise_data() local
388 newval = lastval + (v + 1) / 2; in read_noise_data()
390 newval = lastval - v / 2; in read_noise_data()
397 s->noise[ch][band][idx] = lastval + k * (newval - lastval) / len - 1; in read_noise_data()
399 lastval = newval; in read_noise_data()

Completed in 21 milliseconds

12