Home
last modified time | relevance | path

Searched refs:newval (Results 1 – 25 of 72) sorted by relevance

123

/third_party/boost/libs/multiprecision/test/
Dtest_cpp_int_import_export.cpp60 T newval; in test_round_trip_neg() local
63 import_bits(newval, cv.begin(), cv.end(), 8, false); in test_round_trip_neg()
64 BOOST_CHECK_EQUAL(-val, newval); in test_round_trip_neg()
77 T newval; in test_round_trip() local
78 import_bits(newval, cv.begin(), cv.end()); in test_round_trip()
79 BOOST_CHECK_EQUAL(val, newval); in test_round_trip()
82 newval = 0; in test_round_trip()
83 import_bits(newval, cv.begin(), cv.end(), 8, false); in test_round_trip()
84 BOOST_CHECK_EQUAL(val, newval); in test_round_trip()
86 newval = 0; in test_round_trip()
[all …]
/third_party/boost/boost/atomic/detail/
Dinterlocked.hpp29 #define BOOST_ATOMIC_INTERLOCKED_EXCHANGE(dest, newval) _InterlockedExchange((long*)(dest), (long)( argument
43 #define BOOST_ATOMIC_INTERLOCKED_EXCHANGE(dest, newval) InterlockedExchange((long*)(dest), (long)(n… argument
72 #define BOOST_ATOMIC_INTERLOCKED_EXCHANGE(dest, newval) _InterlockedExchange((long*)(dest), (long)( argument
98 #define BOOST_ATOMIC_INTERLOCKED_EXCHANGE(dest, newval) _InterlockedExchange((long*)(dest), (long)( argument
148 …efine BOOST_ATOMIC_INTERLOCKED_EXCHANGE8(dest, newval) _InterlockedExchange8((char*)(dest), (char)… argument
164 …ine BOOST_ATOMIC_INTERLOCKED_EXCHANGE16(dest, newval) _InterlockedExchange16((short*)(dest), (shor… argument
182 …e BOOST_ATOMIC_INTERLOCKED_EXCHANGE64(dest, newval) _InterlockedExchange64((__int64*)(dest), (__in… argument
193 …_ATOMIC_INTERLOCKED_EXCHANGE_POINTER(dest, newval) _InterlockedExchangePointer((void**)(dest), (vo… argument
199 …T_ATOMIC_INTERLOCKED_EXCHANGE_POINTER(dest, newval) ((void*)_InterlockedExchange((long*)(dest), (l… argument
215 …e BOOST_ATOMIC_INTERLOCKED_EXCHANGE64(dest, newval) _InterlockedExchange64((__int64*)(dest), (__in… argument
[all …]
/third_party/glib/glib/
Dgatomic.h40 gint newval);
48 gint newval);
66 gpointer newval);
70 gpointer newval);
109 #define g_atomic_int_set(atomic, newval) \ argument
112 gint gais_temp = (gint) (newval); \
113 (void) (0 ? *(atomic) ^ (newval) : 1); \
126 #define g_atomic_pointer_set(atomic, newval) \ argument
130 glib_typeof (*(atomic)) gaps_temp_newval = (newval); \
143 #define g_atomic_pointer_set(atomic, newval) \
[all …]
Dgatomic.c138 gint newval)
140 g_atomic_int_set (atomic, newval);
214 gint newval) in gboolean()
216 return g_atomic_int_compare_and_exchange (atomic, oldval, newval); in gboolean()
369 gpointer newval)
371 g_atomic_pointer_set ((gpointer *) atomic, newval);
400 gpointer newval) in gboolean()
403 oldval, newval); in gboolean()
584 gint newval)
586 *atomic = newval;
[all …]
/third_party/flutter/skia/third_party/externals/sdl/src/atomic/
DSDL_atomic.c87 SDL_AtomicCAS(SDL_atomic_t *a, int oldval, int newval) in SDL_AtomicCAS() argument
90 …return (_InterlockedCompareExchange((long*)&a->value, (long)newval, (long)oldval) == (long)oldval); in SDL_AtomicCAS()
92 return (SDL_bool) OSAtomicCompareAndSwap32Barrier(oldval, newval, &a->value); in SDL_AtomicCAS()
94 return (SDL_bool) __sync_bool_compare_and_swap(&a->value, oldval, newval); in SDL_AtomicCAS()
96 …((int) atomic_cas_64((volatile uint64_t*)&a->value, (uint64_t)oldval, (uint64_t)newval) == oldval); in SDL_AtomicCAS()
98 …((int) atomic_cas_32((volatile uint32_t*)&a->value, (uint32_t)oldval, (uint32_t)newval) == oldval); in SDL_AtomicCAS()
104 a->value = newval; in SDL_AtomicCAS()
116 SDL_AtomicCASPtr(void **a, void *oldval, void *newval) in SDL_AtomicCASPtr() argument
119 return (_InterlockedCompareExchange((long*)a, (long)newval, (long)oldval) == (long)oldval); in SDL_AtomicCASPtr()
121 return (_InterlockedCompareExchangePointer(a, newval, oldval) == oldval); in SDL_AtomicCASPtr()
[all …]
/third_party/grpc/src/core/lib/iomgr/
Dsocket_utils_common_posix.cc93 int newval; in grpc_set_socket_no_sigpipe_if_possible() local
94 socklen_t intlen = sizeof(newval); in grpc_set_socket_no_sigpipe_if_possible()
98 if (0 != getsockopt(fd, SOL_SOCKET, SO_NOSIGPIPE, &newval, &intlen)) { in grpc_set_socket_no_sigpipe_if_possible()
101 if ((newval != 0) != (val != 0)) { in grpc_set_socket_no_sigpipe_if_possible()
174 int newval; in grpc_set_socket_reuse_addr() local
175 socklen_t intlen = sizeof(newval); in grpc_set_socket_reuse_addr()
179 if (0 != getsockopt(fd, SOL_SOCKET, SO_REUSEADDR, &newval, &intlen)) { in grpc_set_socket_reuse_addr()
182 if ((newval != 0) != val) { in grpc_set_socket_reuse_addr()
196 int newval; in grpc_set_socket_reuse_port()
197 socklen_t intlen = sizeof(newval); in grpc_set_socket_reuse_port()
[all …]
/third_party/toybox/kconfig/
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.tri = expr_calc_value(prop->expr); in sym_calc_value()
326 if (newval.tri == mod && sym_get_type(sym) == S_BOOLEAN) in sym_calc_value()
[all …]
/third_party/libuv/src/unix/
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()
41 if (__plo_CSST(ptr, (unsigned int*) &oldval, newval, in UV_UNUSED()
47 return atomic_cas_uint((uint_t *)ptr, (uint_t)oldval, (uint_t)newval); in UV_UNUSED()
49 return __sync_val_compare_and_swap(ptr, oldval, newval); in UV_UNUSED()
/third_party/python/Python/
Dast_opt.c85 PyObject *newval = ops[node->v.UnaryOp.op](arg->v.Constant.value); in fold_unaryop() local
86 return make_const(node, newval, arena); in fold_unaryop()
227 PyObject *newval; in fold_binop() local
231 newval = PyNumber_Add(lv, rv); in fold_binop()
234 newval = PyNumber_Subtract(lv, rv); in fold_binop()
237 newval = safe_multiply(lv, rv); in fold_binop()
240 newval = PyNumber_TrueDivide(lv, rv); in fold_binop()
243 newval = PyNumber_FloorDivide(lv, rv); in fold_binop()
246 newval = safe_mod(lv, rv); in fold_binop()
249 newval = safe_power(lv, rv); in fold_binop()
[all …]
/third_party/uboot/u-boot-2020.01/scripts/kconfig/
Dsymbol.c359 struct symbol_value newval, oldval; in sym_calc_value() local
384 newval = symbol_empty.curr; in sym_calc_value()
388 newval = symbol_no.curr; in sym_calc_value()
403 sym->curr = newval; in sym_calc_value()
410 newval.tri = (prop_get_symbol(prop)->curr.val == sym) ? yes : no; in sym_calc_value()
417 newval.tri = EXPR_AND(sym->def[S_DEF_USER].tri, in sym_calc_value()
427 newval.tri = EXPR_AND(expr_calc_value(prop->expr), in sym_calc_value()
429 if (newval.tri != no) in sym_calc_value()
434 newval.tri = EXPR_OR(newval.tri, sym->implied.tri); in sym_calc_value()
440 newval.tri = EXPR_OR(newval.tri, sym->rev_dep.tri); in sym_calc_value()
[all …]
/third_party/boost/boost/hana/
Dreplace.hpp25 constexpr auto replace_t::operator()(Xs&& xs, OldVal&& oldval, NewVal&& newval) const { in operator ()()
38 static_cast<NewVal&&>(newval)); in operator ()()
46 apply(Xs&& xs, OldVal&& oldval, NewVal&& newval) { in apply()
50 static_cast<NewVal&&>(newval) in apply()
/third_party/python/Lib/tkinter/test/test_ttk/
Dtest_extensions.py135 newval = x.value + 1
136 x.value = newval
140 self.assertEqual(x.value, newval)
142 newval if self.wantobjects else str(newval))
143 self.assertEqual(float(x.scale.get()), newval)
155 self.assertEqual(x.value, newval)
156 self.assertEqual(conv(x.label['text']), newval)
157 self.assertEqual(float(x.scale.get()), newval)
162 x.value = newval = newval + 1.5
164 self.assertEqual(x.value, int(newval))
[all …]
/third_party/uboot/u-boot-2020.01/drivers/mmc/
Diproc_sdhci.c97 u32 oldval, newval; in sdhci_iproc_writew() local
114 newval = (oldval & ~mask) | (val << word_shift); in sdhci_iproc_writew()
118 iproc_host->shadow_cmd = newval; in sdhci_iproc_writew()
121 iproc_host->shadow_blk = newval; in sdhci_iproc_writew()
124 sdhci_iproc_writel(host, newval, reg & ~3); in sdhci_iproc_writew()
133 u32 newval = (oldval & ~mask) | (val << byte_shift); in sdhci_iproc_writeb() local
135 sdhci_iproc_writel(host, newval, reg & ~3); in sdhci_iproc_writeb()
Dbcm2835_sdhci.c111 u32 newval = (oldval & ~mask) | (val << word_shift); in bcm2835_sdhci_writew() local
114 shadow = newval; in bcm2835_sdhci_writew()
116 bcm2835_sdhci_raw_writel(host, newval, reg & ~3); in bcm2835_sdhci_writew()
125 u32 newval = (oldval & ~mask) | (val << byte_shift); in bcm2835_sdhci_writeb() local
127 bcm2835_sdhci_raw_writel(host, newval, reg & ~3); in bcm2835_sdhci_writeb()
/third_party/skia/third_party/externals/swiftshader/third_party/subzero/crosstest/
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); \
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/boost/boost/multiprecision/cpp_int/
Dimport_export.hpp69 …it_size(cpp_int_backend<MinBits, MaxBits, SignType, Checked, Allocator>& newval, unsigned bits, co… in resize_to_bit_size() argument
77 newval.resize(limb_count, limb_count); in resize_to_bit_size()
78 std::memset(newval.limbs(), 0, newval.size() * sizeof(limb_type)); in resize_to_bit_size()
81 …it_size(cpp_int_backend<MinBits, MaxBits, SignType, Checked, Allocator>& newval, unsigned, const m… in resize_to_bit_size() argument
83 *newval.limbs() = 0; in resize_to_bit_size()
91 …backend<MinBits, MaxBits, SignType, Checked, Allocator>, ExpressionTemplates>::backend_type newval; in import_bits_generic() local
105 detail::resize_to_bit_size(newval, static_cast<unsigned>(bits), tag_type()); in import_bits_generic()
112 …detail::assign_bits(newval, static_cast<unsigned_value_type>(*i), static_cast<unsigned>(bit_locati… in import_bits_generic()
117 newval.normalize(); in import_bits_generic()
119 val.backend().swap(newval); in import_bits_generic()
/third_party/grpc/test/core/iomgr/
Dsocket_utils_test.cc45 int newval; in mutate_fd() local
46 socklen_t intlen = sizeof(newval); in mutate_fd()
54 if (0 != getsockopt(fd, IPPROTO_IP, IP_TOS, &newval, &intlen)) { in mutate_fd()
57 if (newval != m->option_value) { in mutate_fd()
/third_party/ltp/testcases/kernel/syscalls/futex/
Dfutextest.h254 futex_cmpxchg(futex_t *uaddr, u_int32_t oldval, u_int32_t newval) in futex_cmpxchg() argument
256 return __sync_val_compare_and_swap(uaddr, oldval, newval); in futex_cmpxchg()
291 futex_set(futex_t *uaddr, u_int32_t newval) in futex_set() argument
293 *uaddr = newval; in futex_set()
294 return newval; in futex_set()
/third_party/curl/lib/
Dstrtoofft.c84 curl_off_t newval; in strtooff() local
135 newval = base * value + i; in strtooff()
136 if(newval < value) { in strtooff()
142 value = newval; in strtooff()
/third_party/boost/boost/hana/fwd/
Dreplace.hpp48 constexpr auto replace = [](auto&& xs, auto&& oldval, auto&& newval) { in __anon5c3dd73c0102() argument
57 constexpr auto operator()(Xs&& xs, OldVal&& oldval, NewVal&& newval) const;
/third_party/boost/libs/units/example/
Dmeasurement.hpp300 newval = std::pow(x.value(),m), in value() local
301 err = newval*std::sqrt(std::pow(m*x.uncertainty()/x.value(),2)); in value()
303 return type(newval,err); in value()
320 newval = std::pow(x.value(),m), in value() local
321 err = newval*std::sqrt(std::pow(m*x.uncertainty()/x.value(),2)); in value()
323 return type(newval,err); in value()
/third_party/ffmpeg/libavutil/
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/uboot/u-boot-2020.01/env/
Dflags.c499 int env_flags_validate(const struct env_entry *item, const char *newval, in env_flags_validate() argument
511 newval = newval ? : ""; in env_flags_validate()
518 if (_env_flags_validate_type(newval, type) < 0) { in env_flags_validate()
521 name, newval, env_flags_vartype_rep[type]); in env_flags_validate()
/third_party/grpc/test/cpp/interop/
Dgrpclb_fallback_test.cc137 int newval; in TcpUserTimeoutMutateFd() local
138 socklen_t len = sizeof(newval); in TcpUserTimeoutMutateFd()
139 if (0 != getsockopt(fd, IPPROTO_TCP, TCP_USER_TIMEOUT, &newval, &len) || in TcpUserTimeoutMutateFd()
140 newval != timeout) { in TcpUserTimeoutMutateFd()

123