/external/XNNPACK/test/ |
D | vbinary-microkernel-tester.h | 116 const uint16_t* b_data = inplace_b() ? y.data() : b.data(); in Test() local 122 y_ref[i] = fp16_ieee_to_fp32_value(a_data[i]) + fp16_ieee_to_fp32_value(b_data[i]); in Test() 125 y_ref[i] = fp16_ieee_to_fp32_value(a_data[i]) / fp16_ieee_to_fp32_value(b_data[i]); in Test() 128 …y_ref[i] = std::max<float>(fp16_ieee_to_fp32_value(a_data[i]), fp16_ieee_to_fp32_value(b_data[i])); in Test() 131 …y_ref[i] = std::min<float>(fp16_ieee_to_fp32_value(a_data[i]), fp16_ieee_to_fp32_value(b_data[i])); in Test() 134 y_ref[i] = fp16_ieee_to_fp32_value(a_data[i]) * fp16_ieee_to_fp32_value(b_data[i]); in Test() 138 … const float diff = fp16_ieee_to_fp32_value(a_data[i]) - fp16_ieee_to_fp32_value(b_data[i]); in Test() 143 y_ref[i] = fp16_ieee_to_fp32_value(a_data[i]) - fp16_ieee_to_fp32_value(b_data[i]); in Test() 149 vbinary(batch_size() * sizeof(uint16_t), a_data, b_data, y.data(), nullptr); in Test() 178 const uint16_t* b_data = inplace_b() ? y.data() : b.data(); in Test() local [all …]
|
D | vadd-microkernel-tester.h | 169 const uint8_t* b_data = inplace_b() ? y.data() : b.data(); variable 197 float(int32_t(b_data[i]) - int32_t(b_zero_point())) * (b_scale() / y_scale()); 200 y_ref[i] = xnn_qu8_quantize_add(a_data[i], b_data[i], scalar_quantization_params); 204 vadd_minmax(batch_size(), a_data, b_data, y.data(), &quantization_params); 240 const int8_t* b_data = inplace_b() ? y.data() : b.data(); variable 268 float(int32_t(b_data[i]) - int32_t(b_zero_point() - 0x80)) * (b_scale() / y_scale()); 271 y_ref[i] = xnn_qs8_quantize_add(a_data[i], b_data[i], scalar_quantization_params); 275 vadd_minmax(batch_size(), a_data, b_data, y.data(), &quantization_params);
|
/external/tensorflow/tensorflow/compiler/xla/tests/ |
D | triangular_solve_test.cc | 109 auto b_data = in XLA_TEST_F() local 117 {a_data.get(), b_data.get()}); in XLA_TEST_F() 125 auto b_data = CreateR2Parameter<float>(BValsRight(), 1, "b", &builder, &b); in XLA_TEST_F() local 137 ComputeAndCompareR2<float>(&builder, expected, {a_data.get(), b_data.get()}, in XLA_TEST_F() 146 auto b_data = CreateR2Parameter<float>(BValsRight(), 1, "b", &builder, &b); in XLA_TEST_F() local 158 ComputeAndCompareR2<float>(&builder, expected, {a_data.get(), b_data.get()}, in XLA_TEST_F() 167 auto b_data = CreateR2Parameter<float>(BValsRight(), 1, "b", &builder, &b); in XLA_TEST_F() local 179 ComputeAndCompareR2<float>(&builder, expected, {a_data.get(), b_data.get()}, in XLA_TEST_F() 188 auto b_data = CreateR2Parameter<float>(BValsRight(), 1, "b", &builder, &b); in XLA_TEST_F() local 200 ComputeAndCompareR2<float>(&builder, expected, {a_data.get(), b_data.get()}, in XLA_TEST_F() [all …]
|
/external/curl/lib/ |
D | ftplistparser.c | 283 char *str = finfo->b_data; in ftp_pl_insert_finfo() 364 parser->file_data->info.b_data = malloc(FTP_BUFFER_ALLOCSIZE); in Curl_ftp_parselist() 365 if(!parser->file_data->info.b_data) { in Curl_ftp_parselist() 376 finfo->b_data[finfo->b_used++] = c; in Curl_ftp_parselist() 380 char *tmp = realloc(finfo->b_data, in Curl_ftp_parselist() 384 finfo->b_data = tmp; in Curl_ftp_parselist() 418 finfo->b_data[parser->item_length - 1] = 0; in Curl_ftp_parselist() 419 if(strncmp("total ", finfo->b_data, 6) == 0) { in Curl_ftp_parselist() 420 char *endptr = finfo->b_data + 6; in Curl_ftp_parselist() 490 finfo->b_data[10] = 0; /* terminate permissions */ in Curl_ftp_parselist() [all …]
|
/external/e2fsprogs/debugfs/ |
D | recovery.c | 232 tagp = &bh->b_data[sizeof(journal_header_t)]; in count_tags() 234 while ((tagp - bh->b_data + tag_bytes) <= size) { in count_tags() 384 *crc32_sum = crc32_be(*crc32_sum, (void *)bh->b_data, bh->b_size); in calc_chksums() 395 *crc32_sum = crc32_be(*crc32_sum, (void *)obh->b_data, in calc_chksums() 518 tmp = (journal_header_t *)bh->b_data; in do_one_pass() 547 bh->b_data)) { in do_one_pass() 580 tagp = &bh->b_data[sizeof(journal_header_t)]; in do_one_pass() 581 while ((tagp - bh->b_data + tag_bytes) in do_one_pass() 619 journal, tag, obh->b_data, in do_one_pass() 647 memcpy(nbh->b_data, obh->b_data, in do_one_pass() [all …]
|
D | journal.c | 128 sizeof(bh->b_data); in getblk() 177 1, bh->b_data); in ll_rw_block() 192 1, bh->b_data); in ll_rw_block() 452 memcpy(&jsuper, start ? bh->b_data : in ext2fs_get_journal() 453 bh->b_data + SUPERBLOCK_OFFSET, in ext2fs_get_journal() 479 p = start ? bh->b_data : bh->b_data + SUPERBLOCK_OFFSET; in ext2fs_get_journal() 505 journal->j_superblock = (journal_superblock_t *)bh->b_data; in ext2fs_get_journal() 881 h = (struct commit_header *)(bh->b_data); in jbd2_commit_block_csum_set() 885 csum = jbd2_chksum(j, j->j_csum_seed, bh->b_data, j->j_blocksize); in jbd2_commit_block_csum_set() 897 tail = (struct journal_revoke_tail *)(bh->b_data + j->j_blocksize - in jbd2_revoke_csum_set() [all …]
|
D | revoke.c | 616 header = (journal_header_t *)descriptor->b_data; 630 * ((__be64 *)(&descriptor->b_data[offset])) = 633 * ((__be32 *)(&descriptor->b_data[offset])) = 648 tail = (struct journal_revoke_tail *)(bh->b_data + j->j_blocksize - 651 csum = jbd2_chksum(j, j->j_csum_seed, bh->b_data, j->j_blocksize); 673 header = (journal_revoke_header_t *)descriptor->b_data;
|
D | do_journal.c | 87 commit = (struct commit_header *)bh->b_data; in journal_commit_trans() 113 (unsigned char const *)cbh->b_data, in journal_commit_trans() 192 jrb = buf = bh->b_data; in journal_add_revoke_to_trans() 296 buf = data_bh->b_data; in journal_add_blocks_to_trans() 305 jdb = jdb_buf = bh->b_data; in journal_add_blocks_to_trans() 313 j = fread(data_bh->b_data, trans->journal->j_blocksize, 1, fp); in journal_add_blocks_to_trans() 708 tmp = (journal_header_t *)bh->b_data; in journal_find_head() 732 next_log_block += count_tags(journal, bh->b_data); in journal_find_head()
|
/external/e2fsprogs/e2fsck/ |
D | recovery.c | 232 tagp = &bh->b_data[sizeof(journal_header_t)]; in count_tags() 234 while ((tagp - bh->b_data + tag_bytes) <= size) { in count_tags() 384 *crc32_sum = crc32_be(*crc32_sum, (void *)bh->b_data, bh->b_size); in calc_chksums() 395 *crc32_sum = crc32_be(*crc32_sum, (void *)obh->b_data, in calc_chksums() 518 tmp = (journal_header_t *)bh->b_data; in do_one_pass() 547 bh->b_data)) { in do_one_pass() 580 tagp = &bh->b_data[sizeof(journal_header_t)]; in do_one_pass() 581 while ((tagp - bh->b_data + tag_bytes) in do_one_pass() 619 journal, tag, obh->b_data, in do_one_pass() 647 memcpy(nbh->b_data, obh->b_data, in do_one_pass() [all …]
|
D | revoke.c | 616 header = (journal_header_t *)descriptor->b_data; 630 * ((__be64 *)(&descriptor->b_data[offset])) = 633 * ((__be32 *)(&descriptor->b_data[offset])) = 648 tail = (struct journal_revoke_tail *)(bh->b_data + j->j_blocksize - 651 csum = jbd2_chksum(j, j->j_csum_seed, bh->b_data, j->j_blocksize); 673 header = (journal_revoke_header_t *)descriptor->b_data;
|
/external/tensorflow/tensorflow/core/kernels/ |
D | quantized_matmul_op.cc | 36 const quint8* b_data, qint32* c_data, int m, int n, int k, in GemmlowpMultiply() argument 39 const uint8* b_data_as_uint8 = &(b_data->value); in GemmlowpMultiply() 124 const T2* b_data = b.flat<T2>().data(); in Compute() local 141 meta::QuantizedGemm(context, transpose_a_, transpose_b_, a_data, b_data, in Compute() 151 GemmlowpMultiply<true, true, false>(context, a_data, b_data, c_data, in Compute() 155 GemmlowpMultiply<true, false, false>(context, a_data, b_data, c_data, in Compute() 161 GemmlowpMultiply<false, true, false>(context, a_data, b_data, c_data, in Compute() 165 GemmlowpMultiply<false, false, false>(context, a_data, b_data, c_data, in Compute() 173 lda, b_data, offset_b, ldb, c_data, shift_c, offset_c, mult_c, ldc); in Compute()
|
D | meta_support.cc | 119 const quint8* b_data, qint32* c_data, int m, int n, in QuantizedGemmImpl() argument 134 params.rhs = reinterpret_cast<const uint8_t*>(&(b_data->value)); in QuantizedGemmImpl() 221 bool transpose_b, const quint8* a_data, const quint8* b_data, in QuantizedGemm() argument 230 tf_context, a_data, b_data, c_data, m, n, k, offset_a, offset_b, lda, in QuantizedGemm() 235 tf_context, a_data, b_data, c_data, m, n, k, offset_a, offset_b, lda, in QuantizedGemm() 242 tf_context, a_data, b_data, c_data, m, n, k, offset_a, offset_b, lda, in QuantizedGemm() 247 tf_context, a_data, b_data, c_data, m, n, k, offset_a, offset_b, lda, in QuantizedGemm()
|
D | remote_fused_graph_execute_op_test_utils.cc | 63 Tensor b_data(DT_FLOAT, TensorShape({1, 1, 1, 1})); in BuildMultipleAddGraph() local 64 test::FillIota<float>(&b_data, 1.0f); in BuildMultipleAddGraph() 65 Output b_const = ops::Const(root.WithOpName("B"), Input::Initializer(b_data)); in BuildMultipleAddGraph()
|
/external/tensorflow/tensorflow/tools/graph_transforms/ |
D | transform_utils_test.cc | 42 Tensor b_data(DT_FLOAT, TensorShape({width})); in TestMapNamesToNodes() local 43 test::FillIota<float>(&b_data, 1.0f); in TestMapNamesToNodes() 44 Output b_const = Const(root.WithOpName("b"), Input::Initializer(b_data)); in TestMapNamesToNodes() 75 Tensor b_data(DT_FLOAT, TensorShape({width})); in TestMapNodesToOutputs() local 76 test::FillIota<float>(&b_data, 1.0f); in TestMapNodesToOutputs() 77 Output b_const = Const(root.WithOpName("b"), Input::Initializer(b_data)); in TestMapNodesToOutputs() 229 Tensor b_data(DT_FLOAT, TensorShape({width})); in TestFilterGraphDef() local 230 test::FillIota<float>(&b_data, 1.0f); in TestFilterGraphDef() 231 Output b_const = Const(root.WithOpName("b"), Input::Initializer(b_data)); in TestFilterGraphDef() 289 Tensor b_data(DT_FLOAT, TensorShape({width})); in TestGetOpTypeMatches() local [all …]
|
D | fold_constants_test.cc | 57 Tensor b_data(DT_FLOAT, TensorShape({width})); in TestSimpleAdd() local 58 test::FillIota<float>(&b_data, 1.0f); in TestSimpleAdd() 60 Const(root.WithOpName("b_expect_removed"), Input::Initializer(b_data)); in TestSimpleAdd() 94 Tensor b_data(DT_FLOAT, TensorShape({width})); in TestOpExclusionAdd() local 95 test::FillIota<float>(&b_data, 1.0f); in TestOpExclusionAdd() 97 Const(root.WithOpName("b_expect_remains"), Input::Initializer(b_data)); in TestOpExclusionAdd() 304 Tensor b_data(DT_FLOAT, TensorShape({width})); in TestRemoveUnusedNodes() local 305 test::FillIota<float>(&b_data, 1.0f); in TestRemoveUnusedNodes() 306 Output b_const = Const(root.WithOpName("b"), Input::Initializer(b_data)); in TestRemoveUnusedNodes() 343 Tensor b_data(DT_FLOAT, TensorShape({width})); in TestMaxConstantSizeInBytes() local [all …]
|
D | transform_graph_test.cc | 63 Tensor b_data(DT_FLOAT, TensorShape({width})); in TestConstantFolding() local 64 test::FillIota<float>(&b_data, 1.0f); in TestConstantFolding() 66 Const(root.WithOpName("b_expect_removed"), Input::Initializer(b_data)); in TestConstantFolding()
|
/external/squashfs-tools/kernel/fs/squashfs/ |
D | block.c | 57 *length = (unsigned char) bh->b_data[*offset]; in get_block_length() 62 *length |= (unsigned char) bh->b_data[0] << 8; in get_block_length() 65 *length = (unsigned char) bh->b_data[*offset] | in get_block_length() 66 (unsigned char) bh->b_data[*offset + 1] << 8; in get_block_length() 182 msblk->stream.next_in = bh[k]->b_data + offset; in squashfs_read_data() 250 bh[k]->b_data + offset, avail); in squashfs_read_data()
|
/external/tensorflow/tensorflow/compiler/xla/service/gpu/ |
D | triangular_solve_thunk.cc | 93 se::DeviceMemoryBase b_data = in ExecuteOnStream() local 97 se::DeviceMemory<float> b_data_typed(b_data); in ExecuteOnStream() 107 se::DeviceMemory<double> b_data_typed(b_data); in ExecuteOnStream() 117 se::DeviceMemory<std::complex<float>> b_data_typed(b_data); in ExecuteOnStream() 128 se::DeviceMemory<std::complex<double>> b_data_typed(b_data); in ExecuteOnStream()
|
/external/tensorflow/tensorflow/core/kernels/hexagon/ |
D | hexagon_rewriter_transform_test.cc | 49 Tensor b_data(DT_FLOAT, TensorShape({1, 1, 1, 1})); in TEST() local 50 test::FillIota<float>(&b_data, 1.0f); in TEST() 51 Output b_const = ops::Const(root.WithOpName("b"), Input::Initializer(b_data)); in TEST()
|
/external/angle/third_party/abseil-cpp/absl/container/ |
D | inlined_vector.h | 778 auto b_data = b.data(); 779 return absl::equal(a_data, a_data + a.size(), b_data, b_data + b.size()); 799 auto b_data = b.data(); 800 return std::lexicographical_compare(a_data, a_data + a.size(), b_data, 801 b_data + b.size());
|
/external/libtextclassifier/abseil-cpp/absl/container/ |
D | inlined_vector.h | 776 auto b_data = b.data(); 777 return absl::equal(a_data, a_data + a.size(), b_data, b_data + b.size()); 797 auto b_data = b.data(); 798 return std::lexicographical_compare(a_data, a_data + a.size(), b_data, 799 b_data + b.size());
|
/external/webrtc/third_party/abseil-cpp/absl/container/ |
D | inlined_vector.h | 779 auto b_data = b.data(); 780 return absl::equal(a_data, a_data + a.size(), b_data, b_data + b.size()); 800 auto b_data = b.data(); 801 return std::lexicographical_compare(a_data, a_data + a.size(), b_data, 802 b_data + b.size());
|
/external/openscreen/third_party/abseil/src/absl/container/ |
D | inlined_vector.h | 776 auto b_data = b.data(); 777 return absl::equal(a_data, a_data + a.size(), b_data, b_data + b.size()); 797 auto b_data = b.data(); 798 return std::lexicographical_compare(a_data, a_data + a.size(), b_data, 799 b_data + b.size());
|
/external/abseil-cpp/absl/container/ |
D | inlined_vector.h | 779 auto b_data = b.data(); 780 return absl::equal(a_data, a_data + a.size(), b_data, b_data + b.size()); 800 auto b_data = b.data(); 801 return std::lexicographical_compare(a_data, a_data + a.size(), b_data, 802 b_data + b.size());
|
/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/container/ |
D | inlined_vector.h | 776 auto b_data = b.data(); 777 return absl::equal(a_data, a_data + a.size(), b_data, b_data + b.size()); 797 auto b_data = b.data(); 798 return std::lexicographical_compare(a_data, a_data + a.size(), b_data, 799 b_data + b.size());
|