Home
last modified time | relevance | path

Searched refs:new_val (Results 1 – 25 of 51) sorted by relevance

123

/third_party/ffmpeg/libavcodec/
Dcos_tablegen.c44 double new_val = val * (double) (1 << 15); in printval() local
46 new_val = new_val >= 0 ? floor(new_val + 0.5) : ceil(new_val - 0.5); in printval()
48 printf(" "FIXEDFMT",", clip_f15((long int) new_val)); in printval()
/third_party/libcoap/tests/
Dtest_pdu.c875 int new_val; in t_encode_pdu16() local
889 new_val = 0x12345; in t_encode_pdu16()
891 coap_encode_var_safe(buf, sizeof(buf), new_val), buf); in t_encode_pdu16()
894 new_val = 51; in t_encode_pdu16()
896 coap_encode_var_safe(buf, sizeof(buf), new_val), buf); in t_encode_pdu16()
899 new_val = 0; in t_encode_pdu16()
901 coap_encode_var_safe(buf, sizeof(buf), new_val), buf); in t_encode_pdu16()
904 new_val = 50; in t_encode_pdu16()
906 coap_encode_var_safe(buf, sizeof(buf), new_val), buf); in t_encode_pdu16()
909 new_val = 0x6543210; in t_encode_pdu16()
[all …]
/third_party/libbpf/src/
Drelo_core.c889 res->new_val = 0; in bpf_core_calc_relo()
901 &res->new_val, &res->new_sz, in bpf_core_calc_relo()
944 err = err ?: bpf_core_calc_type_relo(relo, targ_spec, &res->new_val, NULL); in bpf_core_calc_relo()
947 err = err ?: bpf_core_calc_enumval_relo(relo, targ_spec, &res->new_val); in bpf_core_calc_relo()
1028 __u64 orig_val, new_val; in bpf_core_patch_insn() local
1045 new_val = res->new_val; in bpf_core_patch_insn()
1056 (unsigned long long)new_val); in bpf_core_patch_insn()
1060 insn->imm = new_val; in bpf_core_patch_insn()
1063 (unsigned long long)orig_val, (unsigned long long)new_val); in bpf_core_patch_insn()
1071 (unsigned long long)new_val); in bpf_core_patch_insn()
[all …]
/third_party/ltp/testcases/lib/
Dtst_security.sh146 local cur_val new_val
151 [ $cur_val = 1 ] && new_val=0 || new_val=1
152 echo $new_val > $dir/checkreqprot
/third_party/skia/modules/skottie/src/animator/
DVectorKeyframeAnimator.cpp116 new_val = Lerp(Sk4f::Load(v0), Sk4f::Load(v1), lerp_info.weight); in onSeek() local
118 changed |= (new_val != old_val).anyTrue(); in onSeek()
119 new_val.store(dst); in onSeek()
128 const auto new_val = Lerp(*v0++, *v1++, lerp_info.weight); in onSeek() local
130 changed |= (new_val != *dst); in onSeek()
131 *dst++ = new_val; in onSeek()
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/opt/
Dccp_pass.cpp146 uint32_t new_val = ComputeLatticeMeet(instr, it->second); in VisitAssignment() local
147 values_[instr->result_id()] = new_val; in VisitAssignment()
148 return IsVaryingValue(new_val) ? SSAPropagator::kVarying in VisitAssignment()
177 uint32_t new_val = ComputeLatticeMeet(instr, folded_inst->result_id()); in VisitAssignment() local
178 values_[instr->result_id()] = new_val; in VisitAssignment()
179 return IsVaryingValue(new_val) ? SSAPropagator::kVarying in VisitAssignment()
/third_party/spirv-tools/source/opt/
Dccp_pass.cpp146 uint32_t new_val = ComputeLatticeMeet(instr, it->second); in VisitAssignment() local
147 values_[instr->result_id()] = new_val; in VisitAssignment()
148 return IsVaryingValue(new_val) ? SSAPropagator::kVarying in VisitAssignment()
178 uint32_t new_val = ComputeLatticeMeet(instr, folded_inst->result_id()); in VisitAssignment() local
179 values_[instr->result_id()] = new_val; in VisitAssignment()
180 return IsVaryingValue(new_val) ? SSAPropagator::kVarying in VisitAssignment()
/third_party/python/Lib/
Dlocale.py224 new_val = []
227 new_val.append('%')
229 new_val.append(_format(perc.group(), val, grouping, monetary))
233 new_val = []
237 new_val.append('%')
240 new_val.append(_format(perc.group(),
246 val = tuple(new_val)
/third_party/mbedtls/tests/suites/
Dtest_suite_asn1write.function529 unsigned char *new_val = (unsigned char *) "new value";
539 new_val = NULL;
543 new_val, new_len);
547 if (new_val != NULL) {
549 new_val, (size_t) new_len);
571 const unsigned char *new_val = (unsigned char *) "new value";
574 new_val = NULL;
579 new_val, (size_t) new_len);
586 } else if (new_val == NULL) {
589 TEST_ASSERT(found->val.p != new_val);
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/BPF/
DBPFISelDAGToDAG.cpp251 } new_val; // hold up the constant values replacing loads. in PreprocessLoad() local
279 getConstantFieldValue(GADN, CDN->getZExtValue(), size, new_val.c); in PreprocessLoad()
287 to_replace = getConstantFieldValue(GADN, 0, size, new_val.c); in PreprocessLoad()
296 val = new_val.c[0]; in PreprocessLoad()
298 val = new_val.s; in PreprocessLoad()
300 val = new_val.i; in PreprocessLoad()
302 val = new_val.d; in PreprocessLoad()
/third_party/selinux/libsepol/src/
Dkernel_to_conf.c34 char *new_val; in cond_expr_to_str() local
46 new_val = create_str("%s", 1, val1); in cond_expr_to_str()
79 new_val = create_str("(%s %s %s)", 3, val1, op, val2); in cond_expr_to_str()
82 new_val = create_str("%s %s", 2, op, val1); in cond_expr_to_str()
86 if (!new_val) { in cond_expr_to_str()
90 rc = strs_stack_push(stack, new_val); in cond_expr_to_str()
97 new_val = strs_stack_pop(stack); in cond_expr_to_str()
98 if (!new_val || !strs_stack_empty(stack)) { in cond_expr_to_str()
103 str = new_val; in cond_expr_to_str()
110 while ((new_val = strs_stack_pop(stack)) != NULL) { in cond_expr_to_str()
[all …]
Dkernel_to_cil.c35 char *new_val; in cond_expr_to_str() local
47 new_val = create_str("%s", 1, val1); in cond_expr_to_str()
81 new_val = create_str("(%s %s %s)", 3, op, val1, val2); in cond_expr_to_str()
84 new_val = create_str("(%s %s)", 2, op, val1); in cond_expr_to_str()
88 if (!new_val) { in cond_expr_to_str()
92 rc = strs_stack_push(stack, new_val); in cond_expr_to_str()
99 new_val = strs_stack_pop(stack); in cond_expr_to_str()
100 if (!new_val || !strs_stack_empty(stack)) { in cond_expr_to_str()
105 str = new_val; in cond_expr_to_str()
112 while ((new_val = strs_stack_pop(stack)) != NULL) { in cond_expr_to_str()
[all …]
Dmodule_to_cil.c1259 char *new_val = NULL; in cond_expr_to_cil() local
1278 new_val = malloc(len); in cond_expr_to_cil()
1279 if (new_val == NULL) { in cond_expr_to_cil()
1284 rlen = snprintf(new_val, len, "(%s)", val1); in cond_expr_to_cil()
1332 new_val = malloc(len); in cond_expr_to_cil()
1333 if (new_val == NULL) { in cond_expr_to_cil()
1339 rlen = snprintf(new_val, len, "(%s %s%s%s)", op, val1, sep, val2); in cond_expr_to_cil()
1352 rc = stack_push(stack, new_val); in cond_expr_to_cil()
1357 new_val = NULL; in cond_expr_to_cil()
1380 free(new_val); in cond_expr_to_cil()
[all …]
/third_party/mesa3d/src/compiler/nir/
Dnir_lower_poly_line_smooth.c64 nir_ssa_def *new_val = nir_fmul(b, nir_vec4(b, one, one, one, coverage), in lower_polylinesmooth() local
66 nir_instr_rewrite_src(instr, &intr->src[0], nir_src_for_ssa(new_val)); in lower_polylinesmooth()
Dnir_lower_point_smooth.c79 nir_ssa_def *new_val = nir_fmul(b, nir_vec4(b, one, one, one, coverage), in lower_point_smooth() local
81 nir_instr_rewrite_src(instr, &intr->src[0], nir_src_for_ssa(new_val)); in lower_point_smooth()
/third_party/python/Include/internal/
Dpycore_atomic.h167 __typeof__(atomic_val->_value) new_val = NEW_VAL;\
168 volatile __typeof__(new_val) *volatile_data = &atomic_val->_value; \
179 *volatile_data = new_val; \
186 : "+r"(new_val) \
/third_party/skia/src/ports/
DSkFontConfigInterface_direct.cpp370 SkScalar new_val; member
376 return ranges[0].new_val; in map_ranges()
383 ranges[i].new_val, ranges[i+1].new_val); in map_ranges()
389 return ranges[rangesCount-1].new_val; in map_ranges()
/third_party/ltp/include/
Dtst_atomic.h152 int old_val, new_val; in tst_atomic_add_return() local
161 : "=&d" (old_val), "=&d" (new_val), "+Q" (*v) in tst_atomic_add_return()
/third_party/node/deps/v8/src/sandbox/
Dexternal-pointer-table-inl.h132 base::Atomic64 new_val = set_mark_bit(old_val); in Mark() local
139 base::Atomic64 val = base::Relaxed_CompareAndSwap(ptr, old_val, new_val); in Mark()
/third_party/mesa3d/src/broadcom/compiler/
Dv3d_nir_lower_line_smooth.c49 nir_ssa_def *new_val = nir_fmul(b, nir_vec4(b, one, one, one, coverage), in lower_line_smooth_intrinsic() local
54 nir_src_for_ssa(new_val)); in lower_line_smooth_intrinsic()
/third_party/python/Modules/clinic/
D_tkinter.c.h817 _tkinter_setbusywaitinterval_impl(PyObject *module, int new_val);
823 int new_val; in _tkinter_setbusywaitinterval() local
825 new_val = _PyLong_AsInt(arg); in _tkinter_setbusywaitinterval()
826 if (new_val == -1 && PyErr_Occurred()) { in _tkinter_setbusywaitinterval()
829 return_value = _tkinter_setbusywaitinterval_impl(module, new_val); in _tkinter_setbusywaitinterval()
/third_party/python/Python/clinic/
Dsysmodule.c.h575 sys_setdlopenflags_impl(PyObject *module, int new_val);
581 int new_val; in sys_setdlopenflags() local
583 new_val = _PyLong_AsInt(arg); in sys_setdlopenflags()
584 if (new_val == -1 && PyErr_Occurred()) { in sys_setdlopenflags()
587 return_value = sys_setdlopenflags_impl(module, new_val); in sys_setdlopenflags()
/third_party/mesa3d/src/freedreno/ir3/
Dir3_spill.c1460 struct reg_or_immed *new_val, in live_in_rewrite() argument
1471 _mesa_hash_table_insert(state->remap, def, new_val); in live_in_rewrite()
1475 assert(new_val->flags & IR3_REG_SSA); in live_in_rewrite()
1477 extract(new_val->def, in live_in_rewrite()
1502 struct reg_or_immed *new_val = read_live_in(ctx, def, block, i); in reload_live_in() local
1504 if (!new_val) { in reload_live_in()
1505 new_val = ralloc(ctx, struct reg_or_immed); in reload_live_in()
1507 new_val->def = rematerialize(def, NULL, pred); in reload_live_in()
1509 new_val->def = reload(ctx, def, NULL, pred); in reload_live_in()
1510 new_val->flags = new_val->def->flags; in reload_live_in()
[all …]
/third_party/pulseaudio/src/pulsecore/
Datomic.h393 int new_val, old_val; in pa_atomic_add() local
400 : "=&r" (old_val), "=&r" (not_exclusive), "=&r" (new_val) in pa_atomic_add()
412 int new_val, old_val; in pa_atomic_sub() local
419 : "=&r" (old_val), "=&r" (not_exclusive), "=&r" (new_val) in pa_atomic_sub()
/third_party/benchmark/tools/gbench/
Dreport.py81 def calculate_change(old_val, new_val): argument
85 if old_val == 0 and new_val == 0:
88 return float(new_val - old_val) / (float(old_val + new_val) / 2)
89 return float(new_val - old_val) / abs(old_val)

123