/third_party/mbedtls/tests/scripts/ |
D | generate_pkcs7_tests.py | 146 new_length = str(hex(int(data[data_i - 1], 16) + 1))[2:] 147 if len(new_length) == 1: 148 new_length = "0"+new_length 149 mutations.append(data[:data_i -1] + [new_length] + data[data_i:]) 155 mutations.append(data[:data_i -1] + [new_length] + \ 162 new_length = str(hex(int(data[data_i - 1], 16) - 1))[2:] 163 if len(new_length) == 1: 164 new_length = "0"+new_length 165 mutations.append(data[:data_i -1] + [new_length] + data[data_i:])
|
/third_party/jerryscript/jerry-core/ecma/operations/ |
D | ecma-array-object.c | 277 uint32_t new_length = index + 1; in ecma_fast_array_set_property() local 279 JERRY_ASSERT (new_length < UINT32_MAX); in ecma_fast_array_set_property() 291 ext_obj_p->u.array.length = new_length; in ecma_fast_array_set_property() 295 values_p = ecma_fast_array_extend (object_p, new_length); in ecma_fast_array_set_property() 324 uint32_t new_length) /**< new length of the fast access mode array */ in ecma_fast_array_extend() argument 330 JERRY_ASSERT (old_length < new_length); in ecma_fast_array_extend() 336 const uint32_t new_length_aligned = ECMA_FAST_ARRAY_ALIGN_LENGTH (new_length); in ecma_fast_array_extend() 355 ext_obj_p->u.array.u.hole_count += (new_length - old_length) * ECMA_FAST_ARRAY_HOLE_ONE; in ecma_fast_array_extend() 356 ext_obj_p->u.array.length = new_length; in ecma_fast_array_extend() 410 … uint32_t new_length) /**< new length of the fast access mode array */ in ecma_delete_fast_array_properties() argument [all …]
|
/third_party/node/deps/v8/src/utils/ |
D | bit-vector.h | 144 void Resize(int new_length, Zone* zone) { in Resize() argument 145 DCHECK_GT(new_length, length()); in Resize() 146 int new_data_length = SizeFor(new_length); in Resize() 169 length_ = new_length; in Resize() 369 int new_length = in EnsureCapacity() local 371 new_length = std::min(new_length, kInitialLength); in EnsureCapacity() 372 while (new_length <= value) new_length *= 2; in EnsureCapacity() 373 bits_.Resize(new_length, zone); in EnsureCapacity()
|
/third_party/mesa3d/src/compiler/glsl/ |
D | link_uniforms.cpp | 139 size_t new_length = name_length; in recursion() local 146 ralloc_asprintf_rewrite_tail(name, &new_length, "%s", field); in recursion() 148 ralloc_asprintf_rewrite_tail(name, &new_length, ".%s", field); in recursion() 166 recursion(t->fields.structure[i].type, name, new_length, in recursion() 199 size_t new_length = name_length; in recursion() local 202 ralloc_asprintf_rewrite_tail(name, &new_length, "[%u]", i); in recursion() 204 recursion(t->fields.array, name, new_length, row_major, in recursion()
|
D | gl_nir_link_varyings.c | 78 size_t new_length = name_length; in create_xfb_varying_names() local 81 ralloc_asprintf_rewrite_tail(name, &new_length, ".%s", ifc_member_name); in create_xfb_varying_names() 83 create_xfb_varying_names(mem_ctx, ifc_member_t, name, new_length, count, in create_xfb_varying_names() 88 size_t new_length = name_length; in create_xfb_varying_names() local 90 ralloc_asprintf_rewrite_tail(name, &new_length, ".%s", field); in create_xfb_varying_names() 93 new_length, count, NULL, NULL, in create_xfb_varying_names() 100 size_t new_length = name_length; in create_xfb_varying_names() local 103 ralloc_asprintf_rewrite_tail(name, &new_length, "[%u]", i); in create_xfb_varying_names() 106 new_length, count, ifc_member_name, in create_xfb_varying_names() 1768 size_t new_length = name_length; in tfeedback_candidate_generator() local [all …]
|
D | link_uniform_blocks.cpp | 247 size_t new_length = name_length; in process_block_array() local 251 ralloc_asprintf_rewrite_tail(name, &new_length, "[%u]", element_idx); in process_block_array() 256 process_block_array(ub_array->array, name, new_length, blocks, in process_block_array()
|
D | gl_nir_link_uniforms.c | 929 size_t new_length = name_length; in find_and_update_named_uniform_storage() local 936 ralloc_asprintf_rewrite_tail(name, &new_length, ".%s", in find_and_update_named_uniform_storage() 944 ralloc_asprintf_rewrite_tail(name, &new_length, "[%u]", i); in find_and_update_named_uniform_storage() 948 var, name, new_length, in find_and_update_named_uniform_storage() 1254 size_t new_length = name_length; in nir_link_uniform() local 1278 ralloc_asprintf_rewrite_tail(name, &new_length, ".%s", in nir_link_uniform() 1301 ralloc_asprintf_rewrite_tail(name, &new_length, "[%u]", i); in nir_link_uniform() 1306 state, name, new_length, in nir_link_uniform()
|
/third_party/node/deps/v8/src/deoptimizer/ |
D | materialized-object-store.cc | 72 int new_length = length > 10 ? length : 10; in EnsureStackEntries() local 73 if (new_length < 2 * array->length()) { in EnsureStackEntries() 74 new_length = 2 * array->length(); in EnsureStackEntries() 78 isolate()->factory()->NewFixedArray(new_length, AllocationType::kOld); in EnsureStackEntries()
|
/third_party/node/deps/v8/src/regexp/ |
D | regexp-bytecode-peephole.cc | 28 int new_length; member 30 BytecodeArgumentMapping(int offset, int length, int new_length) in BytecodeArgumentMapping() 31 : BytecodeArgument(offset, length), new_length(new_length) {} in BytecodeArgumentMapping() 940 DCHECK_EQ(arg.new_length, arg.length); in EmitArgument() 944 DCHECK_EQ(arg.new_length, arg.length); in EmitArgument() 959 switch (arg.new_length) { in EmitArgument() 986 DCHECK_EQ(arg.new_length, arg.length); in EmitArgument() 990 DCHECK_EQ(arg.new_length, arg.length); in EmitArgument() 995 std::min(arg.length, arg.new_length)); in EmitArgument() 996 if (arg.length < arg.new_length) { in EmitArgument() [all …]
|
/third_party/mesa3d/src/util/ |
D | ralloc.c | 505 size_t new_length; in ralloc_vasprintf_rewrite_tail() local 517 new_length = u_printf_length(fmt, args); in ralloc_vasprintf_rewrite_tail() 519 ptr = resize(*str, *start + new_length + 1); in ralloc_vasprintf_rewrite_tail() 523 vsnprintf(ptr + *start, new_length + 1, fmt, args); in ralloc_vasprintf_rewrite_tail() 525 *start += new_length; in ralloc_vasprintf_rewrite_tail() 841 size_t new_length; in linear_vasprintf_rewrite_tail() local 852 new_length = u_printf_length(fmt, args); in linear_vasprintf_rewrite_tail() 854 ptr = linear_realloc(parent, *str, *start + new_length + 1); in linear_vasprintf_rewrite_tail() 858 vsnprintf(ptr + *start, new_length + 1, fmt, args); in linear_vasprintf_rewrite_tail() 860 *start += new_length; in linear_vasprintf_rewrite_tail()
|
/third_party/mesa3d/src/gallium/auxiliary/gallivm/ |
D | lp_bld_pack.c | 217 unsigned new_length, i; in lp_build_concat() local 224 new_length = src_type.length; in lp_build_concat() 231 new_length <<= 1; in lp_build_concat() 232 for (i = 0; i < new_length; i++) { in lp_build_concat() 237 LLVMConstVector(shuffles, new_length), ""); in lp_build_concat() 937 unsigned new_length = src_type.length / size_ratio; in lp_build_resize() local 940 unsigned start_index = (i % size_ratio) * new_length; in lp_build_resize() 942 start_index, new_length); in lp_build_resize() 945 src_type.length = new_length; in lp_build_resize()
|
/third_party/node/deps/brotli/c/enc/ |
D | entropy_encode.c | 416 size_t new_length = length; in BrotliWriteHuffmanTree() local 419 --new_length; in BrotliWriteHuffmanTree() 429 DecideOverRleUse(depth, new_length, in BrotliWriteHuffmanTree() 434 for (i = 0; i < new_length;) { in BrotliWriteHuffmanTree() 440 for (k = i + 1; k < new_length && depth[k] == value; ++k) { in BrotliWriteHuffmanTree()
|
/third_party/skia/third_party/externals/brotli/c/enc/ |
D | entropy_encode.c | 416 size_t new_length = length; in BrotliWriteHuffmanTree() local 419 --new_length; in BrotliWriteHuffmanTree() 429 DecideOverRleUse(depth, new_length, in BrotliWriteHuffmanTree() 434 for (i = 0; i < new_length;) { in BrotliWriteHuffmanTree() 440 for (k = i + 1; k < new_length && depth[k] == value; ++k) { in BrotliWriteHuffmanTree()
|
/third_party/libcoap/src/ |
D | coap_pdu.c | 665 size_t new_length = 0; in coap_update_option() local 675 new_length = coap_opt_encode_size(decode.delta, len); in coap_update_option() 677 if (new_length > old_length) { in coap_update_option() 679 pdu->used_size + new_length - old_length)) in coap_update_option() 685 if (new_length != old_length) in coap_update_option() 686 memmove(&option[new_length], &option[old_length], in coap_update_option() 689 if (!coap_opt_encode(option, new_length, in coap_update_option() 693 if (new_length >= old_length) { in coap_update_option() 694 pdu->used_size += new_length - old_length; in coap_update_option() 696 pdu->data += new_length - old_length; in coap_update_option() [all …]
|
/third_party/node/deps/v8/src/objects/ |
D | js-array-inl.h | 42 bool JSArray::SetLengthWouldNormalize(Heap* heap, uint32_t new_length) { in SetLengthWouldNormalize() argument 43 return new_length > kMaxFastArrayLength; in SetLengthWouldNormalize()
|
D | js-array.h | 56 bool SetLengthWouldNormalize(uint32_t new_length); 57 static inline bool SetLengthWouldNormalize(Heap* heap, uint32_t new_length);
|
D | backing-store.cc | 614 size_t new_length = 0; in GrowWasmMemoryInPlace() local 621 new_length = (current_pages + delta_pages) * wasm::kWasmPageSize; in GrowWasmMemoryInPlace() 625 new_length, PageAllocator::kReadWrite)) { in GrowWasmMemoryInPlace() 628 if (byte_length_.compare_exchange_weak(old_length, new_length, in GrowWasmMemoryInPlace() 638 ->AdjustAmountOfExternalAllocatedMemory(new_length - old_length); in GrowWasmMemoryInPlace()
|
D | bigint.cc | 120 inline void set_length(int new_length, ReleaseStoreTag) { in set_length() argument 122 bitfield = LengthBits::update(bitfield, new_length); in set_length() 319 int new_length = old_length; in Canonicalize() local 320 while (new_length > 0 && result.digit(new_length - 1) == 0) new_length--; in Canonicalize() 321 int to_trim = old_length - new_length; in Canonicalize() 324 Address new_end = result.address() + BigInt::SizeFor(new_length); in Canonicalize() 332 result.set_length(new_length, kReleaseStore); in Canonicalize() 335 if (new_length == 0) { in Canonicalize()
|
/third_party/node/deps/v8/src/strings/ |
D | string-builder.cc | 132 int new_length = length; in EnsureCapacity() local 134 new_length *= 2; in EnsureCapacity() 135 } while (new_length < required_length); in EnsureCapacity() 137 isolate->factory()->NewFixedArrayWithHoles(new_length); in EnsureCapacity()
|
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/internal/ |
D | cord_rep_btree.h | 408 CordRepBtree* CopyBeginTo(size_t end, size_t new_length) const; 413 CordRepBtree* CopyToEndFrom(size_t begin, size_t new_length) const; 637 size_t new_length) const { in CopyToEndFrom() argument 641 tree->length = new_length; in CopyToEndFrom() 648 size_t new_length) const { in CopyBeginTo() argument 652 tree->length = new_length; in CopyBeginTo()
|
/third_party/node/deps/v8/src/builtins/ |
D | builtins-array.cc | 392 uint32_t new_length; in BUILTIN() local 394 isolate, new_length, accessor->Push(array, &args, to_add)); in BUILTIN() 395 return *isolate->factory()->NewNumberFromUint((new_length)); in BUILTIN() 430 Handle<Object> new_length = isolate->factory()->NewNumber(length - 1); in GenericArrayPop() local 433 Handle<String> index = isolate->factory()->NumberToString(new_length); in GenericArrayPop() 449 new_length, StoreOrigin::kMaybeKeyed, in GenericArrayPop() 481 uint32_t new_length = len - 1; in BUILTIN() local 483 isolate, result, JSReceiver::GetElement(isolate, array, new_length)); in BUILTIN() 495 isolate, set_len_ok, JSArray::SetLength(array, new_length)); in BUILTIN() 568 Handle<String> new_length = isolate->factory()->NumberToString( in GenericArrayShift() local [all …]
|
D | builtins-array-gen.cc | 283 TNode<IntPtrT> new_length = IntPtrSub(length, IntPtrConstant(1)); in TF_BUILTIN() local 289 IntPtrAdd(IntPtrAdd(new_length, new_length), in TF_BUILTIN() 295 SmiTag(new_length)); in TF_BUILTIN() 306 elements_known_double_array, new_length, &return_undefined); in TF_BUILTIN() 308 StoreFixedDoubleArrayHole(elements_known_double_array, new_length); in TF_BUILTIN() 316 LoadFixedArrayElement(elements_known_fixed_array, new_length); in TF_BUILTIN() 317 StoreFixedArrayElement(elements_known_fixed_array, new_length, in TF_BUILTIN() 368 TNode<Smi> new_length = in TF_BUILTIN() local 371 args.PopAndReturn(new_length); in TF_BUILTIN() 405 TNode<Smi> new_length = BuildAppendJSArray( in TF_BUILTIN() local [all …]
|
/third_party/jerryscript/jerry-core/ecma/builtin-objects/ |
D | ecma-builtin-array-prototype.c | 237 uint32_t new_length = 0; in ecma_builtin_array_prototype_object_concat() local 241 &new_length, in ecma_builtin_array_prototype_object_concat() 254 …ecma_value_t concat_value = ecma_builtin_helper_array_concat_value (new_array_p, &new_length, args… in ecma_builtin_array_prototype_object_concat() 266 … ((ecma_number_t) new_length)); in ecma_builtin_array_prototype_object_concat() 497 uint32_t new_length = length + arguments_number; in ecma_builtin_array_prototype_object_push() local 499 ecma_value_t *buffer_p = ecma_fast_array_extend (obj_p, new_length) + length; in ecma_builtin_array_prototype_object_push() 508 return ecma_make_uint32_value (new_length); in ecma_builtin_array_prototype_object_push() 1559 uint32_t new_length = len + args_number; in ecma_builtin_array_prototype_object_unshift() local 1560 ecma_value_t *buffer_p = ecma_fast_array_extend (obj_p, new_length); in ecma_builtin_array_prototype_object_unshift() 1573 return ecma_make_uint32_value (new_length); in ecma_builtin_array_prototype_object_unshift()
|
/third_party/mesa3d/src/intel/vulkan/ |
D | anv_batch_chain.c | 127 size_t new_length = MAX2(16, list->array_length * 2); in anv_reloc_list_grow() local 128 while (new_length < list->num_relocs + num_additional_relocs) in anv_reloc_list_grow() 129 new_length *= 2; in anv_reloc_list_grow() 133 new_length * sizeof(*list->relocs), 8, in anv_reloc_list_grow() 141 new_length * sizeof(*list->reloc_bos), 8, in anv_reloc_list_grow() 147 list->array_length = new_length; in anv_reloc_list_grow() 160 uint32_t new_length = MAX2(32, list->dep_words * 2); in anv_reloc_list_grow_deps() local 161 while (new_length < min_num_words) in anv_reloc_list_grow_deps() 162 new_length *= 2; in anv_reloc_list_grow_deps() 165 vk_realloc(alloc, list->deps, new_length * sizeof(BITSET_WORD), 8, in anv_reloc_list_grow_deps() [all …]
|
/third_party/skia/third_party/externals/harfbuzz/src/ |
D | hb-uniscribe.cc | 337 unsigned int length, new_length, name_str_len; in _hb_rename_font() local 350 new_length = name_table_offset + padded_name_table_length; in _hb_rename_font() 351 void *new_sfnt_data = hb_calloc (1, new_length); in _hb_rename_font() 412 return hb_blob_create ((const char *) new_sfnt_data, new_length, in _hb_rename_font()
|