/external/linux-kselftest/tools/testing/selftests/bpf/prog_tests/ |
D | global_data_init.c | 8 __u8 *buff = NULL, *newval = NULL; in test_global_data_init() local 24 newval = malloc(sz); in test_global_data_init() 25 if (CHECK_FAIL(!newval)) in test_global_data_init() 28 memset(newval, 0, sz); in test_global_data_init() 30 err = bpf_map__set_initial_value(map, newval, sz - 1); in test_global_data_init() 34 err = bpf_map__set_initial_value(map, newval, sz); in test_global_data_init() 49 if (CHECK(!buff || err || memcmp(buff, newval, sz), in test_global_data_init() 54 memset(newval, 1, sz); in test_global_data_init() 56 err = bpf_map__set_initial_value(map, newval, sz); in test_global_data_init() 60 free(newval); in test_global_data_init()
|
/external/grpc-grpc/src/core/lib/iomgr/ |
D | socket_utils_common_posix.cc | 73 int newval; in grpc_set_socket_no_sigpipe_if_possible() local 74 socklen_t intlen = sizeof(newval); in grpc_set_socket_no_sigpipe_if_possible() 78 if (0 != getsockopt(fd, SOL_SOCKET, SO_NOSIGPIPE, &newval, &intlen)) { in grpc_set_socket_no_sigpipe_if_possible() 81 if ((newval != 0) != (val != 0)) { in grpc_set_socket_no_sigpipe_if_possible() 147 int newval; in grpc_set_socket_reuse_addr() local 148 socklen_t intlen = sizeof(newval); in grpc_set_socket_reuse_addr() 152 if (0 != getsockopt(fd, SOL_SOCKET, SO_REUSEADDR, &newval, &intlen)) { in grpc_set_socket_reuse_addr() 155 if ((newval != 0) != val) { in grpc_set_socket_reuse_addr() 169 int newval; in grpc_set_socket_reuse_port() 170 socklen_t intlen = sizeof(newval); in grpc_set_socket_reuse_port() [all …]
|
/external/rust/crates/grpcio-sys/grpc/src/core/lib/iomgr/ |
D | socket_utils_common_posix.cc | 93 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 …]
|
/external/toybox/kconfig/ |
D | symbol.c | 267 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 …]
|
/external/selinux/python/sepolicy/ |
D | sepolicy.py | 68 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/linux-kselftest/tools/testing/selftests/futex/include/ |
D | atomic.h | 36 atomic_cmpxchg(atomic_t *addr, int oldval, int newval) in atomic_cmpxchg() argument 38 return __sync_val_compare_and_swap(&addr->val, oldval, newval); in atomic_cmpxchg() 73 atomic_set(atomic_t *addr, int newval) in atomic_set() argument 75 addr->val = newval; in atomic_set() 76 return newval; in atomic_set()
|
D | futextest.h | 219 futex_cmpxchg(futex_t *uaddr, u_int32_t oldval, u_int32_t newval) in futex_cmpxchg() argument 221 return __sync_val_compare_and_swap(uaddr, oldval, newval); in futex_cmpxchg() 256 futex_set(futex_t *uaddr, u_int32_t newval) in futex_set() argument 258 *uaddr = newval; in futex_set() 259 return newval; in futex_set()
|
/external/python/cpython3/Python/ |
D | ast_opt.c | 97 PyObject *newval = ops[node->v.UnaryOp.op](arg->v.Constant.value); in fold_unaryop() local 98 return make_const(node, newval, arena); in fold_unaryop() 239 PyObject *newval = NULL; in fold_binop() local 243 newval = PyNumber_Add(lv, rv); in fold_binop() 246 newval = PyNumber_Subtract(lv, rv); in fold_binop() 249 newval = safe_multiply(lv, rv); in fold_binop() 252 newval = PyNumber_TrueDivide(lv, rv); in fold_binop() 255 newval = PyNumber_FloorDivide(lv, rv); in fold_binop() 258 newval = safe_mod(lv, rv); in fold_binop() 261 newval = safe_power(lv, rv); in fold_binop() [all …]
|
/external/cronet/buildtools/third_party/libc++/trunk/test/std/algorithms/alg.modifying.operations/alg.replace/ |
D | ranges.replace.pass.cpp | 61 int newval; member 71 d.newval); in test() 78 std::same_as<Iter> decltype(auto) ret = std::ranges::replace(range, d.oldval, d.newval); in test() 87 …test<Iter, Sent, 4>({.input = {1, 2, 3, 4}, .oldval = 2, .newval = 23, .expected = {1, 23, 3, 4}}); in test_iterators() 89 test<Iter, Sent, 4>({.input = {1, 2, 3, 4}, .oldval = 5, .newval = 23, .expected = {1, 2, 3, 4}}); in test_iterators() 91 …test<Iter, Sent, 4>({.input = {1, 1, 1, 1}, .oldval = 1, .newval = 23, .expected = {23, 23, 23, 23… in test_iterators() 93 test<Iter, Sent, 0>({.input = {}, .oldval = 1, .newval = 23, .expected = {}}); in test_iterators() 95 test<Iter, Sent, 1>({.input = {1}, .oldval = 1, .newval = 2, .expected = {2}}); in test_iterators()
|
/external/python/cpython3/Lib/tkinter/test/test_ttk/ |
D | test_extensions.py | 137 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 = newval + 1.5 166 self.assertEqual(x.value, int(newval)) [all …]
|
/external/swiftshader/third_party/subzero/crosstest/ |
D | test_sync_atomic.cpp | 59 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/llvm/test/Transforms/AtomicExpand/ARM/ |
D | atomic-expansion-v8.ll | 85 define i8 @test_cmpxchg_i8_seqcst_seqcst(i8* %ptr, i8 %desired, i8 %newval) { 97 ; CHECK: [[NEWVAL32:%.*]] = zext i8 %newval to i32 118 %pairold = cmpxchg i8* %ptr, i8 %desired, i8 %newval seq_cst seq_cst 123 define i16 @test_cmpxchg_i16_seqcst_monotonic(i16* %ptr, i16 %desired, i16 %newval) { 135 ; CHECK: [[NEWVAL32:%.*]] = zext i16 %newval to i32 156 %pairold = cmpxchg i16* %ptr, i16 %desired, i16 %newval seq_cst monotonic 161 define i32 @test_cmpxchg_i32_acquire_acquire(i32* %ptr, i32 %desired, i32 %newval) { 172 ; CHECK: [[TRYAGAIN:%.*]] = call i32 @llvm.arm.strex.p0i32(i32 %newval, i32* %ptr) 192 %pairold = cmpxchg i32* %ptr, i32 %desired, i32 %newval acquire acquire 197 define i64 @test_cmpxchg_i64_monotonic_monotonic(i64* %ptr, i64 %desired, i64 %newval) { [all …]
|
/external/grpc-grpc/test/core/iomgr/ |
D | socket_utils_test.cc | 44 int newval; in mutate_fd() local 45 socklen_t intlen = sizeof(newval); in mutate_fd() 53 if (0 != getsockopt(fd, IPPROTO_IP, IP_TOS, &newval, &intlen)) { in mutate_fd() 56 if (newval != m->option_value) { in mutate_fd()
|
/external/llvm/test/CodeGen/AArch64/ |
D | bitfield-insert.ll | 34 %newval = load volatile i32, i32* %new 35 %newval_shifted = shl i32 %newval, 26 53 %newval = load volatile i64, i64* %new 54 %newval_shifted = shl i64 %newval, 26 74 %newval = load volatile i64, i64* %new 75 %newval_masked = and i64 %newval, 65535 ; = 0xffff 92 %newval = load volatile i32, i32* %new 93 %newval_shifted = shl i32 %newval, 3 110 %newval = load volatile i64, i64* %new 111 %newval_shifted = shl i64 %newval, 40 [all …]
|
D | atomic-ops-not-barriers.ll | 8 %newval = add nsw i32 %oldval, -1 9 store i32 %newval, i32* %var 24 %combined = phi i32 [ %val, %atomic_ver ], [ %newval, %simple_ver]
|
D | cmpxchg-idioms.ll | 3 define i32 @test_return(i32* %p, i32 %oldval, i32 %newval) { 23 %pair = cmpxchg i32* %p, i32 %oldval, i32 %newval seq_cst seq_cst 58 define void @test_conditional(i32* %p, i32 %oldval, i32 %newval) { 76 %pair = cmpxchg i32* %p, i32 %oldval, i32 %newval seq_cst seq_cst
|
/external/llvm/test/CodeGen/PowerPC/ |
D | pr15630.ll | 8 %newval = alloca i8 10 store i8 %newval_arg, i8* %newval 11 %tmp = load i8, i8* %newval
|
/external/curl/lib/ |
D | strtoofft.c | 86 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()
|
/external/ltp/testcases/kernel/syscalls/futex/ |
D | futextest.h | 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() 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()
|
/external/strace/ |
D | sysctl.c | 64 info.oldlenp, info.newval, (unsigned long)info.newlen); in SYS_FUNC() 182 if (info.newval == NULL) in SYS_FUNC() 185 tprintf("%p", info.newval); in SYS_FUNC() 187 printpath(tcp, ptr_to_kulong(info.newval)); in SYS_FUNC()
|
/external/pdfium/xfa/fgas/crt/ |
D | cfgas_decimal.cpp | 270 float newval = fabs(val); in CFGAS_Decimal() local 272 uint64_t bottom64 = static_cast<uint64_t>(fmodf(newval, divisor)); in CFGAS_Decimal() 273 uint64_t top64 = static_cast<uint64_t>(newval / divisor); in CFGAS_Decimal() 278 newval = fmodf(newval, 1.0f); in CFGAS_Decimal() 281 newval *= 10; in CFGAS_Decimal() 282 plo += static_cast<uint64_t>(newval); in CFGAS_Decimal() 283 newval = fmodf(newval, 1.0f); in CFGAS_Decimal() 286 plo += FXSYS_roundf(newval); in CFGAS_Decimal()
|
/external/eigen/unsupported/Eigen/CXX11/src/Tensor/ |
D | TensorReductionGpu.h | 30 unsigned int newval = oldval; in atomicReduce() local 31 reducer.reduce(accum, reinterpret_cast<T*>(&newval)); in atomicReduce() 32 if (newval == oldval) { in atomicReduce() 36 while ((readback = atomicCAS((unsigned int*)output, oldval, newval)) != oldval) { in atomicReduce() 38 newval = oldval; in atomicReduce() 39 reducer.reduce(accum, reinterpret_cast<T*>(&newval)); in atomicReduce() 40 if (newval == oldval) { in atomicReduce() 47 unsigned long long newval = oldval; in atomicReduce() local 48 reducer.reduce(accum, reinterpret_cast<T*>(&newval)); in atomicReduce() 49 if (newval == oldval) { in atomicReduce() [all …]
|
/external/mesa3d/src/mesa/main/ |
D | scissor.c | 266 struct gl_scissor_rect newval[MAX_WINDOW_RECTANGLES]; in _mesa_WindowRectanglesEXT() local 297 newval[i].X = box[0]; in _mesa_WindowRectanglesEXT() 298 newval[i].Y = box[1]; in _mesa_WindowRectanglesEXT() 299 newval[i].Width = box[2]; in _mesa_WindowRectanglesEXT() 300 newval[i].Height = box[3]; in _mesa_WindowRectanglesEXT() 307 memcpy(ctx->Scissor.WindowRects, newval, in _mesa_WindowRectanglesEXT()
|
/external/llvm/test/CodeGen/SystemZ/ |
D | int-cmp-45.ll | 30 %newval = select i1 %cmp, i32 %b, i32 %c 31 store i32 %newval, i32 *%cptr 71 %newval = select i1 %cmp, i32 %c, i32 %b 72 store i32 %newval, i32 *%cptr 112 %newval = select i1 %cmp, i32 %c, i32 %b 113 store i32 %newval, i32 *%cptr
|
/external/mesa3d/src/gallium/drivers/radeonsi/glsl_tests/ |
D | amdgcn_glslc.c | 177 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()
|