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

/external/mesa3d/src/gallium/drivers/etnaviv/
H A Detnaviv_internal.h258 * field_size must be a power of two, and <= 32. */
259 #define DEFINE_ETNA_BITARRAY(name, num, field_size) \
260 uint32_t name[(num) * (field_size) / 32]
263 etna_bitarray_set(uint32_t *array, size_t array_size, size_t field_size, argument
266 size_t shift = (index * field_size) % 32;
267 size_t offset = (index * field_size) / 32;
269 assert(index < array_size * 32 / field_size);
270 assert(value < 1 << field_size);
275 #define etna_bitarray_set(array, field_size, index, value) \
276 etna_bitarray_set((array), ARRAY_SIZE(array), field_size, inde
[all...]
/external/protobuf/php/ext/google/protobuf/
H A Dstorage.c305 size_t field_size; local
312 // Allocate |field_size| bytes for this field in the layout.
313 field_size = 0;
315 field_size = sizeof(zval*);
317 field_size = native_slot_size(upb_fielddef_type(field));
321 off = align_up_to(off, field_size);
325 off += field_size;
348 size_t field_size = NATIVE_SLOT_MAX_SIZE; local
350 off = align_up_to( off, field_size);
357 off += field_size;
366 size_t field_size = sizeof(uint32_t); local
[all...]
/external/nos/host/android/hals/keymaster/
H A Dimport_key.cpp220 const size_t field_size = (parsed_key_size + 7) >> 3; local
221 unique_ptr<uint8_t[]> d_buf(new uint8_t[field_size]);
222 if (!BN_bn2le_padded(d_buf.get(), field_size, d)) {
226 request->mutable_ec()->set_d(d_buf.get(), field_size);
229 unique_ptr<uint8_t[]> x_buf(new uint8_t[field_size]);
230 if (!BN_bn2le_padded(x_buf.get(), field_size, x.get())) {
234 request->mutable_ec()->set_x(x_buf.get(), field_size);
236 unique_ptr<uint8_t[]> y_buf(new uint8_t[field_size]);
237 if (!BN_bn2le_padded(y_buf.get(), field_size, y.get())) {
241 request->mutable_ec()->set_y(y_buf.get(), field_size);
[all...]
/external/nos/host/android/hals/keymaster/test/
H A Dimport_key_test.cpp275 const size_t field_size = (EC_GROUP_get_degree(group) + 7) >> 3; local
276 unique_ptr<uint8_t[]> d_buf(new uint8_t[field_size]);
277 if (!BN_bn2le_padded(d_buf.get(), field_size, d)) {
281 if (request.ec().d().size() != field_size ||
282 memcmp(request.ec().d().data(), d_buf.get(), field_size) != 0) {
288 unique_ptr<uint8_t[]> x_buf(new uint8_t[field_size]);
289 if (!BN_bn2le_padded(x_buf.get(), field_size, x.get())) {
293 if (request.ec().x().size() != field_size ||
294 memcmp(request.ec().x().data(), x_buf.get(), field_size) != 0) {
299 unique_ptr<uint8_t[]> y_buf(new uint8_t[field_size]);
[all...]
/external/nos/test/system-test-harness/src/
H A Dkeymaster-import-key-tests.cc396 const size_t field_size = (EC_GROUP_get_degree(group) + 7) >> 3; local
397 std::unique_ptr<uint8_t []> dstr(new uint8_t[field_size]);
398 std::unique_ptr<uint8_t []> xstr(new uint8_t[field_size]);
399 std::unique_ptr<uint8_t []> ystr(new uint8_t[field_size]);
401 EXPECT_EQ(BN_bn2le_padded(dstr.get(), field_size, d), 1);
402 EXPECT_EQ(BN_bn2le_padded(xstr.get(), field_size, x.get()), 1);
403 EXPECT_EQ(BN_bn2le_padded(ystr.get(), field_size, y.get()), 1);
422 request.mutable_ec()->set_d(dstr.get(), field_size);
423 request.mutable_ec()->set_x(xstr.get(), field_size);
424 request.mutable_ec()->set_y(ystr.get(), field_size);
[all...]
/external/protobuf/ruby/ext/google/protobuf_c/
H A Dstorage.c413 size_t field_size; local
420 // Allocate |field_size| bytes for this field in the layout.
421 field_size = 0;
423 field_size = sizeof(VALUE);
425 field_size = native_slot_size(upb_fielddef_type(field));
428 off = align_up_to(off, field_size);
432 off += field_size;
456 size_t field_size = NATIVE_SLOT_MAX_SIZE; local
458 off = align_up_to(off, field_size);
466 off += field_size;
476 size_t field_size = sizeof(uint32_t); local
[all...]
/external/strace/tests/
H A Ds390_guarded_storage.c142 int field_size = 2 + (67 - gsc) / 4; local
144 printf("%#0*" PRIx64, field_size, gls);
/external/strace/tests-m32/
H A Ds390_guarded_storage.c142 int field_size = 2 + (67 - gsc) / 4; local
144 printf("%#0*" PRIx64, field_size, gls);
/external/strace/tests-mx32/
H A Ds390_guarded_storage.c142 int field_size = 2 + (67 - gsc) / 4; local
144 printf("%#0*" PRIx64, field_size, gls);
/external/perfetto/tools/trace_to_text/
H A Dmain.cc143 uint32_t field_size = 0; local
148 field_size |= static_cast<uint32_t>(c & 0x7f) << shift;
156 std::unique_ptr<char[]> buf(new char[field_size]);
157 input->read(buf.get(), static_cast<std::streamsize>(field_size));
158 bytes_processed += field_size;
161 auto res = packet.ParseFromArray(buf.get(), static_cast<int>(field_size));
/external/protobuf/src/google/protobuf/
H A Ddynamic_message.cc718 int field_size = FieldSpaceUsed(type->field(i)); local
719 size = AlignTo(size, std::min(kSafeAlignment, field_size));
721 size += field_size;
762 int field_size = OneofFieldSpaceUsed(field); local
763 oneof_size = AlignTo(oneof_size, std::min(kSafeAlignment, field_size));
765 oneof_size += field_size;
H A Dwire_format.cc370 int field_size = field.GetLengthDelimitedSize(); local
371 size += io::CodedOutputStream::VarintSize32(field_size);
372 size += field_size;
H A Ddescriptor_unittest.cc784 ASSERT_EQ(6, proto.field_size());
794 ASSERT_EQ(6, proto.field_size());
H A Ddescriptor.pb.cc3334 for (unsigned int i = 0, n = this->field_size(); i < n; i++) {
3413 for (unsigned int i = 0, n = this->field_size(); i < n; i++) {
3507 total_size += 1 * this->field_size();
3508 for (int i = 0; i < this->field_size(); i++) {
3836 int DescriptorProto::field_size() const { function in class:google::protobuf::DescriptorProto
H A Ddescriptor.pb.h796 int field_size() const;
4327 inline int DescriptorProto::field_size() const { function in class:google::protobuf::DescriptorProto
H A Ddescriptor.cc1824 if (field_count() != proto->field_size() ||
/external/python/cpython2/Modules/
H A D_csv.c120 int field_size; /* size of allocated buffer */ member in struct:__anon19295
564 if (self->field_size == 0) {
565 self->field_size = 4096;
568 self->field = PyMem_Malloc(self->field_size);
571 if (self->field_size > INT_MAX / 2) {
575 self->field_size *= 2;
576 self->field = PyMem_Realloc(self->field, self->field_size);
593 if (self->field_len == self->field_size && !parse_grow_buff(self))
935 self->field_size = 0;
/external/python/cpython3/Modules/
H A D_csv.c100 Py_ssize_t field_size; /* size of allocated buffer */ member in struct:__anon19889
564 if (self->field_size == 0) {
565 self->field_size = 4096;
568 self->field = PyMem_New(Py_UCS4, self->field_size);
572 if (self->field_size > PY_SSIZE_T_MAX / 2) {
576 self->field_size *= 2;
577 self->field = PyMem_Resize(field, Py_UCS4, self->field_size);
594 if (self->field_len == self->field_size && !parse_grow_buff(self))
961 self->field_size = 0;
/external/python/cpython3/Modules/_ctypes/
H A Dstgdict.c313 Py_ssize_t field_size = 0; local
531 &field_size, bitsize, &bitofs,
539 &field_size, bitsize, &bitofs,
/external/protobuf/python/google/protobuf/pyext/
H A Drepeated_scalar_container.cc94 int field_size = reflection->FieldSize(*message, field_descriptor); local
96 index = field_size + index;
98 if (index < 0 || index >= field_size) {
196 int field_size = reflection->FieldSize(*message, field_descriptor); local
198 index = field_size + index;
200 if (index < 0 || index >= field_size) {
/external/python/cpython2/Modules/_ctypes/
H A Dstgdict.c317 Py_ssize_t field_size = 0; local
540 &field_size, bitsize, &bitofs,
548 &field_size, bitsize, &bitofs,
/external/nanopb-c/generator/google/protobuf/internal/
H A Dencoder.py199 field_size = value_size + tag_size
201 return field_size
/external/protobuf/python/google/protobuf/internal/
H A Dencoder.py202 field_size = value_size + tag_size
204 return field_size
/external/protobuf/src/google/protobuf/compiler/
H A Dparser.cc772 message->field_size());
1647 containing_type->field_size());
H A Dparser_unittest.cc1737 for (int i = 0; i < proto->field_size(); ++i) {

Completed in 565 milliseconds