Home
last modified time | relevance | path

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

12

/third_party/openssl/crypto/sm2/
Dsm2_crypt.c47 size_t field_size = 0; variable
54 field_size = (BN_num_bits(p) + 7) / 8;
61 return field_size;
84 const size_t field_size = ec_field_size(EC_KEY_get0_group(key)); in sm2_ciphertext_size() local
88 if (field_size == 0 || md_size < 0) in sm2_ciphertext_size()
92 sz = 2 * ASN1_object_size(0, field_size + 1, V_ASN1_INTEGER) in sm2_ciphertext_size()
124 size_t field_size; in sm2_encrypt() local
136 field_size = ec_field_size(group); in sm2_encrypt()
137 if (field_size == 0) { in sm2_encrypt()
162 x2y2 = OPENSSL_zalloc(2 * field_size); in sm2_encrypt()
[all …]
/third_party/mesa3d/src/gallium/drivers/etnaviv/
Detnaviv_internal.h265 #define DEFINE_ETNA_BITARRAY(name, num, field_size) \ argument
266 uint32_t name[(num) * (field_size) / 32]
269 etna_bitarray_set(uint32_t *array, size_t array_size, size_t field_size, in etna_bitarray_set() argument
272 size_t shift = (index * field_size) % 32; in etna_bitarray_set()
273 size_t offset = (index * field_size) / 32; in etna_bitarray_set()
275 assert(index < array_size * 32 / field_size); in etna_bitarray_set()
276 assert(value < 1 << field_size); in etna_bitarray_set()
281 #define etna_bitarray_set(array, field_size, index, value) \ argument
282 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.c53 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/mindspore/tests/st/auto_parallel/
Dmultifieldembeddinglookup_parallel.py178 def __init__(self, vocab_size, embedding_size, field_size, argument
182 embedding_size=embedding_size, field_size=field_size,
202 def __init__(self, vocab_size, embedding_size, field_size, argument
206 self.field_size = field_size
268field_size=self.field_size, param_init=self.param_init, target=self.target,
276field_size=self.field_size, param_init=self.param_init, target=self.target,
284field_size=self.field_size, param_init=self.param_init, target=self.target,
288field_size=self.field_size, param_init=self.param_init, target=self.target,
302 …fact = ParallelMultiHotFactory(vocab_size=32, embedding_size=64, field_size=64, param_init='one', …
/third_party/boost/libs/geometry/test/robustness/overlay/areal_areal/
Drecursive_polygons.cpp110 void test_all(int seed, int count, int field_size, int level, bool triangular, p_q_settings const& … in test_all() argument
118 boost::uniform_int<> random_coordinate(0, field_size - 1); in test_all()
152 int field_size = 10; in main() local
165 ("size", po::value<int>(&field_size)->default_value(10), "Size of the field") in main()
189 test_all<double, false, false>(seed, count, field_size, level, triangular, settings); in main()
193 test_all<double, false, true>(seed, count, field_size, level, triangular, settings); in main()
197 test_all<double, true, false>(seed, count, field_size, level, triangular, settings); in main()
201 test_all<double, true, true>(seed, count, field_size, level, triangular, settings); in main()
/third_party/boost/libs/geometry/test/robustness/convex_hull/
Drandom_multi_points.cpp135 void test_all(int seed, int count, int field_size, int pcount, settings_type const& settings) in test_all() argument
143 boost::uniform_int<> random_coordinate(0, field_size - 1); in test_all()
175 int field_size = 10; in main() local
183 ("size", po::value<int>(&field_size)->default_value(10), "Size of the field") in main()
201 test_all<float>(seed, count, field_size, pcount, settings); in main()
205 test_all<double>(seed, count, field_size, pcount, settings); in main()
209 test_all<int>(seed, count, field_size, pcount, settings); in main()
/third_party/mindspore/tests/ut/python/parallel/
Dtest_multi_field_embedding.py59 …def __init__(self, shape, field_size=10, slice_mode=nn.EmbeddingLookup.BATCH_SLICE, target="Device… argument
63field_size=field_size, slice_mode=slice_mode, operator=operator)
88 net = NetWithLoss(Net(shape, field_size=10, target='DEVICE'))
95 …net = NetWithLoss(Net(shape, field_size=9, slice_mode=nn.EmbeddingLookup.TABLE_ROW_SLICE, target='…
102 …net = NetWithLoss(Net(shape, field_size=10, slice_mode=nn.EmbeddingLookup.TABLE_COLUMN_SLICE, targ…
109 net = NetWithLoss(Net(shape, field_size=1, target='DEVICE', operator='MEAN'))
/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/boost/libs/geometry/test/robustness/common/
Dcommon_settings.hpp19 int field_size; member
27 , field_size(10) in common_settings()
/third_party/mindspore/third_party/patch/openssl/
DCVE-2021-3711.patch6 return field_size;
13 - const size_t field_size = ec_field_size(EC_KEY_get0_group(key));
22 - if (field_size == 0) {
28 - overhead = 10 + 2 * field_size + (size_t)md_size;
/third_party/mindspore/tests/st/model_zoo_tests/wide_and_deep/python_file_for_ci/
Dconfig.py54 self.field_size = 39
84 self.field_size = args.field_size
Dwide_and_deep.py136 self.field_size = config.field_size
147 self.deep_input_dims = self.field_size * self.emb_dim
196 mask = self.reshape(wt_hldr, (self.batch_size, self.field_size, 1))
204 deep_in = self.reshape(vx, (-1, self.field_size * self.emb_dim))
/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/mesa3d/src/vulkan/util/
Dvk_cmd_queue_gen.py274 field_size = "1"
276 field_size = "sizeof(*%s)" % field_name
277 …eue->alloc, %s * %s, 8, VK_SYSTEM_ALLOCATION_SCOPE_COMMAND);" % (field_name, field_size, param.len)
279 …copy = "memcpy((%s)%s, %s, %s * %s);" % (const_cast, field_name, param.name, field_size, param.len)
/third_party/mindspore/mindspore/ccsrc/frontend/parallel/graph_util/
Dget_parallel_info.cc45 int64_t field_size = tensor_layout->get_field_size(); in GetParameterLayout() local
49 …py::make_tuple(device_arrangement, tensor_map, slice_shape, field_size, uniform_split, opt_shard_g… in GetParameterLayout()
/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/mindspore/mindspore/parallel/
D_tensor.py306 def _reshape_param_data_with_weight(param_data, dev_mat, field_size): argument
330 tensor_slices_new = np.array(tensor_slices[0][:, i]).reshape(field_size, -1)
333 … np.array(tensor_slices[j][:, i]).reshape(field_size, -1)), axis=1)
/third_party/gstreamer/gstplugins_bad/gst/dvdspu/
Dgstspu-vobsub.c219 guint16 field_size; in gst_dvd_spu_exec_cmd_blk() local
226 field_size = GST_READ_UINT16_BE (data); in gst_dvd_spu_exec_cmd_blk()
228 if (G_UNLIKELY (data + field_size >= end)) in gst_dvd_spu_exec_cmd_blk()
231 gst_dvd_spu_parse_chg_colcon (dvdspu, data + 2, data + field_size); in gst_dvd_spu_exec_cmd_blk()
233 data += field_size; in gst_dvd_spu_exec_cmd_blk()
/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()
/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()
/third_party/mindspore/mindspore/ccsrc/frontend/parallel/tensor_layout/
Dtensor_layout.h55 void set_field_size(int64_t field_size) { field_size_ = field_size; } in set_field_size() argument
/third_party/mindspore/mindspore/nn/layer/
Dembedding.py476 def __init__(self, vocab_size, embedding_size, field_size, param_init='normal', target='CPU', argument
481 self.field_size = validator.check_positive_int(field_size, 'field_size', self.cls_name)
560 num_segments = batch_size * self.field_size
561 bias = Range(0, num_segments, self.field_size)()
606 merged_vectors = self.reshape(merged_vectors, (batch_size, self.field_size, -1))
/third_party/mindspore/tests/st/model_zoo_tests/DeepFM/src/
Ddeepfm.py200 self.field_size = config.data_field_size
213 self.deep_input_dims = self.field_size * self.emb_dim
243 mask = self.Reshape(wt_hldr, (self.batch_size, self.field_size, 1))
258 deep_in = self.Reshape(vx, (-1, self.field_size * self.emb_dim))

12