Home
last modified time | relevance | path

Searched refs:field_size (Results 1 – 25 of 34) sorted by relevance

12

/third_party/openssl/crypto/sm2/
Dsm2_crypt.c53 size_t field_size = 0; variable
60 field_size = (BN_num_bits(p) + 7) / 8;
67 return field_size;
91 const size_t field_size = ec_field_size(EC_KEY_get0_group(key)); in ossl_sm2_ciphertext_size() local
95 if (field_size == 0 || md_size < 0) in ossl_sm2_ciphertext_size()
99 sz = 2 * ASN1_object_size(0, field_size + 1, V_ASN1_INTEGER) in ossl_sm2_ciphertext_size()
131 size_t field_size; in ossl_sm2_encrypt() local
146 field_size = ec_field_size(group); in ossl_sm2_encrypt()
147 if (field_size == 0) { in ossl_sm2_encrypt()
172 x2y2 = OPENSSL_zalloc(2 * field_size); in ossl_sm2_encrypt()
[all …]
/third_party/node/deps/openssl/openssl/crypto/sm2/
Dsm2_crypt.c53 size_t field_size = 0; variable
60 field_size = (BN_num_bits(p) + 7) / 8;
67 return field_size;
91 const size_t field_size = ec_field_size(EC_KEY_get0_group(key)); in ossl_sm2_ciphertext_size() local
95 if (field_size == 0 || md_size < 0) in ossl_sm2_ciphertext_size()
99 sz = 2 * ASN1_object_size(0, field_size + 1, V_ASN1_INTEGER) in ossl_sm2_ciphertext_size()
131 size_t field_size; in ossl_sm2_encrypt() local
146 field_size = ec_field_size(group); in ossl_sm2_encrypt()
147 if (field_size == 0) { in ossl_sm2_encrypt()
172 x2y2 = OPENSSL_zalloc(2 * field_size); in ossl_sm2_encrypt()
[all …]
/third_party/mesa3d/src/gallium/drivers/etnaviv/
Detnaviv_internal.h269 #define DEFINE_ETNA_BITARRAY(name, num, field_size) \ argument
270 uint32_t name[(num) * (field_size) / 32]
273 etna_bitarray_set(uint32_t *array, size_t array_size, size_t field_size, in etna_bitarray_set() argument
276 size_t shift = (index * field_size) % 32; in etna_bitarray_set()
277 size_t offset = (index * field_size) / 32; in etna_bitarray_set()
279 assert(index < array_size * 32 / field_size); in etna_bitarray_set()
280 assert(value < 1 << field_size); in etna_bitarray_set()
285 #define etna_bitarray_set(array, field_size, index, value) \ argument
286 etna_bitarray_set((array), ARRAY_SIZE(array), field_size, index, value)
/third_party/ffmpeg/libavcodec/
Dfrwu.c71 int field_size, min_field_size = avctx->width * 2 * field_h; in decode_frame() local
76 field_size = bytestream_get_le32(&buf); in decode_frame()
77 if (field_size < min_field_size) { in decode_frame()
78 …av_log(avctx, AV_LOG_ERROR, "Field size %i is too small (required %i)\n", field_size, min_field_si… in decode_frame()
81 if (buf_end - buf < field_size) { in decode_frame()
82 …av_log(avctx, AV_LOG_ERROR, "Packet is too small, need %i, have %i\n", field_size, (int)(buf_end -… in decode_frame()
97 buf += field_size - min_field_size; in decode_frame()
Damr.h55 int field_size; in ff_amr_bit_reorder() local
58 while ((field_size = *ord_table++)) { in ff_amr_bit_reorder()
61 while (field_size--) { in ff_amr_bit_reorder()
Dmjpegbdec.c52 uint32_t field_size, sod_offs; in mjpegb_decode_frame() local
79 field_size = get_bits_long(&hgb, 32); /* field size */ in mjpegb_decode_frame()
80 av_log(avctx, AV_LOG_DEBUG, "field size: 0x%"PRIx32"\n", field_size); in mjpegb_decode_frame()
119 8 * FFMIN(field_size, buf_end - buf_ptr - sos_offs)); in mjpegb_decode_frame()
/third_party/mesa3d/src/vulkan/util/
Dvk_cmd_queue_gen.py422 field_size = "1"
424 field_size = "sizeof(*%s)" % field_name
425 …OCATION_SCOPE_OBJECT);\n if (%s == NULL) goto err;\n" % (field_name, field_size, param.len, fiel…
427 …copy = "memcpy((%s)%s, %s, %s * %s);" % (const_cast, field_name, param.name, field_size, param.len)
433 field_size = "sizeof(*%s)" % (field_name)
435 field_size = "sizeof(*%s) * %s->%s" % (field_name, struct, member.len)
436 …M_ALLOCATION_SCOPE_OBJECT);\n if (%s == NULL) goto err;\n" % (field_name, field_size, field_name)
438 … copy = "memcpy((%s)%s, %s->%s, %s);" % (const_cast, field_name, src_name, member.name, field_size)
/third_party/skia/third_party/externals/angle2/src/compiler/translator/
DValidateVaryingLocations.cpp32 int field_size = 0; in GetFieldLocationCount() local
37 field_size = GetStructLocationCount(fieldType->getStruct()); in GetFieldLocationCount()
41 field_size = fieldType->getNominalSize(); in GetFieldLocationCount()
46 field_size = 1; in GetFieldLocationCount()
51 field_size *= fieldType->getArraySizeProduct(); in GetFieldLocationCount()
54 return field_size; in GetFieldLocationCount()
/third_party/node/deps/v8/src/torque/
Dtype-visitor.cc225 size_t field_size = 0; in ComputeType() local
226 std::tie(field_size, std::ignore) = *optional_size; in ComputeType()
227 offset += field_size; in ComputeType()
453 ResidueClass field_size = std::get<0>(field.GetFieldSizeInformation()); in VisitClassFieldsAndMethods() local
459 field_size * ResidueClass::Unknown()); in VisitClassFieldsAndMethods()
464 field_size *= *value; in VisitClassFieldsAndMethods()
469 field_size *= ResidueClass::Unknown(); in VisitClassFieldsAndMethods()
473 class_offset += field_size; in VisitClassFieldsAndMethods()
Dtypes.cc607 size_t field_size = std::get<0>(field.GetFieldSizeInformation()); in ComputeSlotKindsHelper() local
612 (offset + field_size + TargetArchitecture::TaggedSize() - 1) / in ComputeSlotKindsHelper()
638 offset += field_size; in ComputeSlotKindsHelper()
1204 size_t field_size = std::get<0>(field.GetFieldSizeInformation()); in ValidateAlignment() local
1205 at_offset += field_size; in ValidateAlignment()
/third_party/node/deps/v8/src/wasm/
Dstruct-types.h76 uint32_t field_size = field(i).value_kind_size(); in InitializeOffsets() local
78 offset = RoundUp(offset, field_size); in InitializeOffsets()
80 offset += field_size; in InitializeOffsets()
/third_party/protobuf/ruby/ext/google/protobuf_c/
Dstorage.c604 size_t field_size; in create_layout() local
611 field_size = native_slot_size(upb_fielddef_type(field)); in create_layout()
614 off = align_up_to(off, field_size); in create_layout()
616 off += field_size; in create_layout()
640 size_t field_size = NATIVE_SLOT_MAX_SIZE; in create_layout() local
646 off = align_up_to(off, field_size); in create_layout()
655 off += field_size; in create_layout()
663 size_t field_size = sizeof(uint32_t); in create_layout() local
667 off = (off + field_size - 1) & ~(field_size - 1); in create_layout()
669 off += field_size; in create_layout()
/third_party/mesa3d/src/compiler/nir/
Dnir_opt_memcpy.c85 unsigned field_size; in type_is_tightly_packed() local
86 if (!type_is_tightly_packed(field->type, &field_size)) in type_is_tightly_packed()
89 size = field->offset + field_size; in type_is_tightly_packed()
/third_party/protobuf/src/google/protobuf/
Ddynamic_message.cc778 int field_size = FieldSpaceUsed(type->field(i)); in GetPrototypeNoLock() local
779 size = AlignTo(size, std::min(kSafeAlignment, field_size)); in GetPrototypeNoLock()
781 size += field_size; in GetPrototypeNoLock()
808 int field_size = OneofFieldSpaceUsed(field); in GetPrototypeNoLock() local
809 size = AlignTo(size, std::min(kSafeAlignment, field_size)); in GetPrototypeNoLock()
811 size += field_size; in GetPrototypeNoLock()
Dwire_format.cc322 int field_size = field.GetLengthDelimitedSize(); in ComputeUnknownMessageSetItemsSize() local
323 size += io::CodedOutputStream::VarintSize32(field_size); in ComputeUnknownMessageSetItemsSize()
324 size += field_size; in ComputeUnknownMessageSetItemsSize()
/third_party/protobuf/python/google/protobuf/pyext/
Drepeated_scalar_container.cc94 int field_size = reflection->FieldSize(*message, field_descriptor); in AssignItem() local
96 index = field_size + index; in AssignItem()
98 if (index < 0 || index >= field_size) { in AssignItem()
199 int field_size = reflection->FieldSize(*message, field_descriptor); in Item() local
201 index = field_size + index; in Item()
203 if (index < 0 || index >= field_size) { in Item()
Dmessage.cc1628 Py_ssize_t field_size; in ClearField() local
1629 if (PyString_AsStringAndSize(arg, &field_name, &field_size) < 0) { in ClearField()
1635 self->message, StringParam(field_name, field_size), &is_in_oneof); in ClearField()
/third_party/python/Modules/
D_csv.c114 Py_ssize_t field_size; /* size of allocated buffer */ member
636 assert((size_t)self->field_size <= PY_SSIZE_T_MAX / sizeof(Py_UCS4)); in parse_grow_buff()
638 Py_ssize_t field_size_new = self->field_size ? 2 * self->field_size : 4096; in parse_grow_buff()
646 self->field_size = field_size_new; in parse_grow_buff()
659 if (self->field_len == self->field_size && !parse_grow_buff(self)) in parse_add_char()
1024 self->field_size = 0; in csv_reader()
/third_party/protobuf/php/src/Google/Protobuf/Internal/
DMessage.php1987 $field_size = $this->fieldJsonByteSize($field);
1988 $size += $field_size;
1996 $field_size = $this->fieldJsonByteSize($field);
1997 $size += $field_size;
2011 $field_size = $this->fieldJsonByteSize($field);
2012 $size += $field_size;
2013 if ($field_size != 0) {
/third_party/python/Modules/_ctypes/
Dstgdict.c346 Py_ssize_t field_size = 0; in PyCStructUnionType_update_stgdict() local
602 &field_size, bitsize, &bitofs, in PyCStructUnionType_update_stgdict()
610 &field_size, bitsize, &bitofs, in PyCStructUnionType_update_stgdict()
/third_party/node/deps/v8/src/snapshot/
Dserializer.cc1146 int field_offset, int field_size, in OutputRawWithCustomField() argument
1150 DCHECK_GE(bytes_to_write, offset + field_size); in OutputRawWithCustomField()
1153 sink->PutRaw(field_value, field_size, "Bytes"); in OutputRawWithCustomField()
1154 written_so_far += offset + field_size; in OutputRawWithCustomField()
1155 bytes_to_write -= offset + field_size; in OutputRawWithCustomField()
/third_party/node/src/crypto/
Dcrypto_ec.cc224 int field_size = EC_GROUP_get_degree(ecdh->group_); in ComputeSecret() local
225 size_t out_len = (field_size + 7) / 8; in ComputeSecret()
536 int field_size = EC_GROUP_get_degree(group); in DeriveBits() local
537 len = (field_size + 7) / 8; in DeriveBits()
/third_party/protobuf/python/google/protobuf/internal/
Dencoder.py202 field_size = value_size + tag_size
204 return field_size
/third_party/ffmpeg/libavfilter/
Daf_atempo.c250 #define RE_MALLOC_OR_FAIL(field, field_size) \ argument
253 field = av_calloc(field_size, 1); \
/third_party/mesa3d/src/compiler/
Dglsl_types.cpp2755 unsigned field_size, field_align; in get_explicit_type_for_size_align() local
2757 fields[i].type->get_explicit_type_for_size_align(type_info, &field_size, &field_align); in get_explicit_type_for_size_align()
2761 *size = fields[i].offset + field_size; in get_explicit_type_for_size_align()

12