Home
last modified time | relevance | path

Searched refs:idx2 (Results 1 – 25 of 95) sorted by relevance

1234

/third_party/boost/libs/multi_array/test/
Dslice.cpp61 const index idx2 = A.index_bases()[2]; in test_views() local
68 [range(idx2+0,idx2+4,2)] in test_views()
74 BOOST_TEST(B[i][j][k] == A[idx0+i][idx1+j+1][idx2+k*2]); in test_views()
77 BOOST_TEST(B(elmts) == A[idx0+i][idx1+j+1][idx2+k*2]); in test_views()
83 A[indices[range(idx0+0,idx0+2)][idx1+1][range(idx2+0,idx2+4,2)]]; in test_views()
87 BOOST_TEST(B[i][j] == A[idx0+i][idx1+1][idx2+j*2]); in test_views()
90 BOOST_TEST(B(elmts) == A[idx0+i][idx1+1][idx2+j*2]); in test_views()
99 [range(idx2+2,idx2+0,-1)] in test_views()
108 BOOST_TEST(B[i][j][k] == A[idx0+i][idx1+j][idx2+2-k]); in test_views()
111 BOOST_TEST(B(elmts) == A[idx0+i][idx1+j][idx2+2-k]); in test_views()
Dgenerative_tests.hpp80 const index idx2 = A.index_bases()[2]; in assign_if_not_const() local
86 for (index k = idx2; k != idx2 + 4; ++k) in assign_if_not_const()
180 const index idx2 = A.index_bases()[2]; in run_configuration() local
185 [range(idx2+1,idx2+5)] in run_configuration()
203 const index idx2 = A.index_bases()[2]; in run_configuration() local
208 [range(idx2+1,idx2+5)] in run_configuration()
Daccess.cpp37 const index idx2 = A.index_bases()[2]; in access() local
44 for (index k = idx2; k != idx2+4; ++k) { in access()
52 for (index k2 = idx2; k2 != idx2+4; ++k2) { in access()
/third_party/skia/third_party/externals/brotli/c/enc/
Dcluster_inc.h16 uint32_t idx2, size_t max_num_pairs, HistogramPair* pairs,
20 p.idx1 = p.idx2 = 0;
22 if (idx1 == idx2) {
25 if (idx2 < idx1) {
26 uint32_t t = idx2;
27 idx2 = idx1;
31 p.idx2 = idx2;
32 p.cost_diff = 0.5 * ClusterCostDiff(cluster_size[idx1], cluster_size[idx2]);
34 p.cost_diff -= out[idx2].bit_cost_;
37 p.cost_combo = out[idx2].bit_cost_;
[all …]
/third_party/node/deps/brotli/c/enc/
Dcluster_inc.h16 uint32_t idx2, size_t max_num_pairs, HistogramPair* pairs,
20 p.idx1 = p.idx2 = 0;
22 if (idx1 == idx2) {
25 if (idx2 < idx1) {
26 uint32_t t = idx2;
27 idx2 = idx1;
31 p.idx2 = idx2;
32 p.cost_diff = 0.5 * ClusterCostDiff(cluster_size[idx1], cluster_size[idx2]);
34 p.cost_diff -= out[idx2].bit_cost_;
37 p.cost_combo = out[idx2].bit_cost_;
[all …]
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/
Diou_cpu_kernel.cc77 size_t idx2 = i / anchor_boxes_size_ * kBoxCoordinateLen; in Launch() local
78 T I_x0 = std::max(anchor_boxes[idx1], gt_boxes[idx2]); in Launch()
79 T I_y0 = std::max(anchor_boxes[idx1 + Y0_SHIFT], gt_boxes[idx2 + Y0_SHIFT]); in Launch()
80 T I_x1 = std::min(anchor_boxes[idx1 + X1_SHIFT], gt_boxes[idx2 + X1_SHIFT]); in Launch()
81 T I_y1 = std::min(anchor_boxes[idx1 + Y1_SHIFT], gt_boxes[idx2 + Y1_SHIFT]); in Launch()
87 T area2 = (gt_boxes[idx2 + X1_SHIFT] - gt_boxes[idx2] + ONE) * in Launch()
88 (gt_boxes[idx2 + Y1_SHIFT] - gt_boxes[idx2 + Y0_SHIFT] + ONE); in Launch()
/third_party/ffmpeg/libavcodec/mips/
Dvp9dsp_init_mips.c85 #define init_fpel(idx1, idx2, sz, type) \ in vp9dsp_mc_init_msa() argument
86 dsp->mc[idx1][FILTER_8TAP_SMOOTH ][idx2][0][0] = ff_##type##sz##_msa; \ in vp9dsp_mc_init_msa()
87 dsp->mc[idx1][FILTER_8TAP_REGULAR][idx2][0][0] = ff_##type##sz##_msa; \ in vp9dsp_mc_init_msa()
88 dsp->mc[idx1][FILTER_8TAP_SHARP ][idx2][0][0] = ff_##type##sz##_msa; \ in vp9dsp_mc_init_msa()
89 dsp->mc[idx1][FILTER_BILINEAR ][idx2][0][0] = ff_##type##sz##_msa in vp9dsp_mc_init_msa()
108 #define init_subpel1(idx1, idx2, idxh, idxv, sz, dir, type) \ in vp9dsp_mc_init_msa() argument
109 dsp->mc[idx1][FILTER_BILINEAR ][idx2][idxh][idxv] = \ in vp9dsp_mc_init_msa()
111 dsp->mc[idx1][FILTER_8TAP_SMOOTH ][idx2][idxh][idxv] = \ in vp9dsp_mc_init_msa()
113 dsp->mc[idx1][FILTER_8TAP_REGULAR][idx2][idxh][idxv] = \ in vp9dsp_mc_init_msa()
115 dsp->mc[idx1][FILTER_8TAP_SHARP ][idx2][idxh][idxv] = \ in vp9dsp_mc_init_msa()
[all …]
/third_party/mindspore/tests/ut/cpp/ir/
Dclone_test.cc116 FuncGraphIndex idx2(g_clone, DeepLinkedGraphSearch); in TEST_F() local
120 ASSERT_EQ(idx.GetFirstNode(std::string(1, name)), idx2.GetFirstNode(std::string(1, name))); in TEST_F()
123 ASSERT_FALSE(idx.GetFirstNode("z") == idx2.GetFirstNode("z")); in TEST_F()
124 ASSERT_FALSE(idx.GetFirstFuncGraph("j") == idx2.GetFirstFuncGraph("j")); in TEST_F()
155 FuncGraphIndex idx2(g2); in TEST_F() local
160 auto result2 = idx2.GetFirstFuncGraph(std::string(1, name)); in TEST_F()
166 …ASSERT_TRUE(idx1.GetFirstFuncGraph(std::string(1, name)) == idx2.GetFirstFuncGraph(std::string(1, … in TEST_F()
191 FuncGraphIndex idx2(cl2[g]); in TEST_F() local
193 ASSERT_FALSE(idx0.GetFirstFuncGraph("clone_total") == idx2.GetFirstFuncGraph("clone_total")); in TEST_F()
194 …ASSERT_TRUE(idx0.GetFirstFuncGraph("clone_total_sub") == idx2.GetFirstFuncGraph("clone_total_sub")… in TEST_F()
/third_party/jerryscript/tests/jerry/es2015/
Dregression-test-issue-3665.js16 var idx2 = 42.7; variable
17 var obj = { [idx1] : { [idx2] : {}}};
18 ([obj[idx1][idx2]] = [5.7]);
20 assert (obj[idx1][idx2] === 5.7);
/third_party/ffmpeg/libavcodec/arm/
Dvp9dsp_init_16bpp_arm_template.c106 #define init_fpel(idx1, idx2, sz, type, suffix) \ in vp9dsp_mc_init_arm() argument
107 dsp->mc[idx1][FILTER_8TAP_SMOOTH ][idx2][0][0] = \ in vp9dsp_mc_init_arm()
108 dsp->mc[idx1][FILTER_8TAP_REGULAR][idx2][0][0] = \ in vp9dsp_mc_init_arm()
109 dsp->mc[idx1][FILTER_8TAP_SHARP ][idx2][0][0] = \ in vp9dsp_mc_init_arm()
110 dsp->mc[idx1][FILTER_BILINEAR ][idx2][0][0] = ff_vp9_##type##sz##suffix##_neon in vp9dsp_mc_init_arm()
116 #define init_mc_func(idx1, idx2, op, filter, fname, dir, mx, my, sz, pfx, bpp) \ in vp9dsp_mc_init_arm() argument
117 dsp->mc[idx1][filter][idx2][mx][my] = pfx##op##_##fname##sz##_##dir##_##bpp##_neon in vp9dsp_mc_init_arm()
215 #define init_lpf_func_8(idx1, idx2, dir, wd, bpp) \ in vp9dsp_loopfilter_init_arm() argument
216 dsp->loop_filter_8[idx1][idx2] = ff_vp9_loop_filter_##dir##_##wd##_8_##bpp##_neon in vp9dsp_loopfilter_init_arm()
221 #define init_lpf_func_mix2(idx1, idx2, idx3, dir, wd, bpp) \ in vp9dsp_loopfilter_init_arm() argument
[all …]
/third_party/protobuf/objectivec/Tests/
DGPBArrayTests.m148 //% __block NSUInteger idx2 = 0;
150 //% XCTAssertEqual(idx, idx2);
153 //% ++idx2;
155 //% idx2 = 0;
158 //% XCTAssertEqual(idx, (3 - idx2));
161 //% ++idx2;
164 //% idx2 = 0;
166 //% XCTAssertEqual(idx, idx2);
169 //% if (idx2 == 1) *stop = YES;
172 //% ++idx2;
[all …]
/third_party/mindspore/tests/st/control/
Dtest_switch_layer_mindir.py50 idx2 = Tensor(-1, mstype.int32)
54 export(net, data, idx, idx2, file_name=file_name, file_format='MINDIR')
59 outputs_after_load = loaded_net(data, idx, idx2)
76 idx2 = Tensor(-1, mstype.int32)
80 export(net, data, idx, idx2, file_name=file_name, file_format='MINDIR')
93 idx2 = Tensor(-1, mstype.int32)
99 outputs_after_load = loaded_net(data, idx, idx2)
/third_party/skia/third_party/externals/libwebp/src/enc/
Dhistogram_enc.c733 int idx2; member
804 int idx2, double threshold) { in HistoQueuePush() argument
812 if (idx1 > idx2) { in HistoQueuePush()
813 const int tmp = idx2; in HistoQueuePush()
814 idx2 = idx1; in HistoQueuePush()
818 pair.idx2 = idx2; in HistoQueuePush()
820 h2 = histograms[idx2]; in HistoQueuePush()
868 const int idx2 = histo_queue.queue[0].idx2; in HistogramCombineGreedy() local
869 HistogramAdd(histograms[idx2], histograms[idx1], histograms[idx1]); in HistogramCombineGreedy()
873 HistogramSetRemoveHistogram(image_histo, idx2, num_used); in HistogramCombineGreedy()
[all …]
/third_party/flutter/skia/third_party/externals/libwebp/src/enc/
Dhistogram_enc.c732 int idx2; member
803 int idx2, double threshold) { in HistoQueuePush() argument
811 if (idx1 > idx2) { in HistoQueuePush()
812 const int tmp = idx2; in HistoQueuePush()
813 idx2 = idx1; in HistoQueuePush()
817 pair.idx2 = idx2; in HistoQueuePush()
819 h2 = histograms[idx2]; in HistoQueuePush()
867 const int idx2 = histo_queue.queue[0].idx2; in HistogramCombineGreedy() local
868 HistogramAdd(histograms[idx2], histograms[idx1], histograms[idx1]); in HistogramCombineGreedy()
872 HistogramSetRemoveHistogram(image_histo, idx2, num_used); in HistogramCombineGreedy()
[all …]
/third_party/ffmpeg/libavcodec/aarch64/
Dvp9dsp_init_16bpp_aarch64_template.c108 #define init_fpel(idx1, idx2, sz, type, suffix) \ in vp9dsp_mc_init_aarch64() argument
109 dsp->mc[idx1][FILTER_8TAP_SMOOTH ][idx2][0][0] = \ in vp9dsp_mc_init_aarch64()
110 dsp->mc[idx1][FILTER_8TAP_REGULAR][idx2][0][0] = \ in vp9dsp_mc_init_aarch64()
111 dsp->mc[idx1][FILTER_8TAP_SHARP ][idx2][0][0] = \ in vp9dsp_mc_init_aarch64()
112 dsp->mc[idx1][FILTER_BILINEAR ][idx2][0][0] = ff_vp9_##type##sz##suffix in vp9dsp_mc_init_aarch64()
131 #define init_mc_func(idx1, idx2, op, filter, fname, dir, mx, my, sz, pfx, bpp) \ in vp9dsp_mc_init_aarch64() argument
132 dsp->mc[idx1][filter][idx2][mx][my] = pfx##op##_##fname##sz##_##dir##_##bpp##_neon in vp9dsp_mc_init_aarch64()
231 #define init_lpf_func_8(idx1, idx2, dir, wd, bpp) \ in vp9dsp_loopfilter_init_aarch64() argument
232 dsp->loop_filter_8[idx1][idx2] = ff_vp9_loop_filter_##dir##_##wd##_8_##bpp##_neon in vp9dsp_loopfilter_init_aarch64()
237 #define init_lpf_func_mix2(idx1, idx2, idx3, dir, wd, bpp) \ in vp9dsp_loopfilter_init_aarch64() argument
[all …]
/third_party/ffmpeg/libavcodec/x86/
Dvp9dsp_init.h142 #define init_fpel_func(idx1, idx2, sz, type, bpp, opt) \ argument
143 dsp->mc[idx1][FILTER_8TAP_SMOOTH ][idx2][0][0] = \
144 dsp->mc[idx1][FILTER_8TAP_REGULAR][idx2][0][0] = \
145 dsp->mc[idx1][FILTER_8TAP_SHARP ][idx2][0][0] = \
146 dsp->mc[idx1][FILTER_BILINEAR ][idx2][0][0] = ff_vp9_##type##sz##bpp##_##opt
148 #define init_subpel1(idx1, idx2, idxh, idxv, sz, dir, type, bpp, opt) \ argument
149 dsp->mc[idx1][FILTER_8TAP_SMOOTH ][idx2][idxh][idxv] = \
151 dsp->mc[idx1][FILTER_8TAP_REGULAR][idx2][idxh][idxv] = \
153 dsp->mc[idx1][FILTER_8TAP_SHARP ][idx2][idxh][idxv] = \
156 #define init_subpel2(idx1, idx2, sz, type, bpp, opt) \ argument
[all …]
/third_party/node/deps/npm/node_modules/iconv-lite/encodings/
Dsbcs-codec.js62 var idx1 = 0, idx2 = 0;
64 idx1 = buf[i]*2; idx2 = i*2;
65 newBuf[idx2] = decodeBuf[idx1];
66 newBuf[idx2+1] = decodeBuf[idx1+1];
/third_party/boost/libs/random/test/
Dtest_uniform_on_sphere.cpp21 : impl(dims), idx1(x), idx2(y) {} in uniform_on_sphere_test()
26 return std::atan2(tmp[idx1], tmp[idx2]); in operator ()()
30 int idx1, idx2; member in uniform_on_sphere_test
/third_party/flutter/skia/third_party/externals/icu/source/tools/gencnval/
Dgencnval.c666 uint32_t idx, idx2; in addAlias() local
711 for (idx2 = 0; idx2 < tags[standard].aliasList[idx].aliasCount; idx2++) { in addAlias()
712 uint16_t aliasNum = tags[standard].aliasList[idx].aliases[idx2]; in addAlias()
813 uint16_t idx, idx2, idx3; in resolveAliasToConverter() local
816 for (idx2 = 0; idx2 < converterCount; idx2++) { in resolveAliasToConverter()
817 for (idx3 = 0; idx3 < tags[idx].aliasList[idx2].aliasCount; idx3++) { in resolveAliasToConverter()
818 uint16_t aliasNum = tags[idx].aliasList[idx2].aliases[idx3]; in resolveAliasToConverter()
821 *converterNum = idx2; in resolveAliasToConverter()
830 for (idx2 = 0; idx2 < converterCount; idx2++) { in resolveAliasToConverter()
831 for (idx3 = 0; idx3 < tags[idx].aliasList[idx2].aliasCount; idx3++) { in resolveAliasToConverter()
[all …]
/third_party/skia/third_party/externals/icu/source/tools/gencnval/
Dgencnval.c667 uint32_t idx, idx2; in addAlias() local
712 for (idx2 = 0; idx2 < tags[standard].aliasList[idx].aliasCount; idx2++) { in addAlias()
713 uint16_t aliasNum = tags[standard].aliasList[idx].aliases[idx2]; in addAlias()
814 uint16_t idx, idx2, idx3; in resolveAliasToConverter() local
817 for (idx2 = 0; idx2 < converterCount; idx2++) { in resolveAliasToConverter()
818 for (idx3 = 0; idx3 < tags[idx].aliasList[idx2].aliasCount; idx3++) { in resolveAliasToConverter()
819 uint16_t aliasNum = tags[idx].aliasList[idx2].aliases[idx3]; in resolveAliasToConverter()
822 *converterNum = idx2; in resolveAliasToConverter()
831 for (idx2 = 0; idx2 < converterCount; idx2++) { in resolveAliasToConverter()
832 for (idx3 = 0; idx3 < tags[idx].aliasList[idx2].aliasCount; idx3++) { in resolveAliasToConverter()
[all …]
/third_party/icu/icu4c/source/tools/gencnval/
Dgencnval.c667 uint32_t idx, idx2; in addAlias() local
712 for (idx2 = 0; idx2 < tags[standard].aliasList[idx].aliasCount; idx2++) { in addAlias()
713 uint16_t aliasNum = tags[standard].aliasList[idx].aliases[idx2]; in addAlias()
814 uint16_t idx, idx2, idx3; in resolveAliasToConverter() local
817 for (idx2 = 0; idx2 < converterCount; idx2++) { in resolveAliasToConverter()
818 for (idx3 = 0; idx3 < tags[idx].aliasList[idx2].aliasCount; idx3++) { in resolveAliasToConverter()
819 uint16_t aliasNum = tags[idx].aliasList[idx2].aliases[idx3]; in resolveAliasToConverter()
822 *converterNum = idx2; in resolveAliasToConverter()
831 for (idx2 = 0; idx2 < converterCount; idx2++) { in resolveAliasToConverter()
832 for (idx3 = 0; idx3 < tags[idx].aliasList[idx2].aliasCount; idx3++) { in resolveAliasToConverter()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/subzero/crosstest/
Dtest_vector_ops_ll.ll5 i32 2, label %idx2
14 idx2:
30 i32 2, label %idx2
41 idx2:
59 i32 2, label %idx2
74 idx2:
108 i32 2, label %idx2
131 idx2:
197 i32 2, label %idx2
206 idx2:
[all …]
/third_party/skia/src/pathops/
DSkOpAngle.cpp490 for (int idx2 = idx1 + 1; idx2 <= ptCount; ++idx2) { in distEndRatio() local
491 if (idx1 == idx2) { in distEndRatio()
495 v.set(pts[idx2] - pts[idx1]); in distEndRatio()
528 for (int idx2 = 0; idx2 < i.used(); ++idx2) { in endsIntersect() local
529 double testT = i[0][idx2]; in endsIntersect()
582 for (int idx2 = 0; idx2 <= ptCount; ++idx2) { in endsIntersect() local
583 minX = std::min(minX, curve[idx2].fX); in endsIntersect()
584 minY = std::min(minY, curve[idx2].fY); in endsIntersect()
585 maxX = std::max(maxX, curve[idx2].fX); in endsIntersect()
586 maxY = std::max(maxY, curve[idx2].fY); in endsIntersect()
[all …]
/third_party/flutter/skia/src/pathops/
DSkOpAngle.cpp490 for (int idx2 = idx1 + 1; idx2 <= ptCount; ++idx2) { in distEndRatio() local
491 if (idx1 == idx2) { in distEndRatio()
495 v.set(pts[idx2] - pts[idx1]); in distEndRatio()
528 for (int idx2 = 0; idx2 < i.used(); ++idx2) { in endsIntersect() local
529 double testT = i[0][idx2]; in endsIntersect()
582 for (int idx2 = 0; idx2 <= ptCount; ++idx2) { in endsIntersect() local
583 minX = SkTMin(minX, curve[idx2].fX); in endsIntersect()
584 minY = SkTMin(minY, curve[idx2].fY); in endsIntersect()
585 maxX = SkTMax(maxX, curve[idx2].fX); in endsIntersect()
586 maxY = SkTMax(maxY, curve[idx2].fY); in endsIntersect()
[all …]
/third_party/skia/third_party/externals/tint/fuzzers/tint_regex_fuzzer/
Dwgsl_mutator.cc177 size_t idx2, in SwapIntervals() argument
182 std::string region_2 = wgsl_code.substr(idx2 + 1, reg2_len - 1); in SwapIntervals()
185 wgsl_code.replace(idx2 + 1, region_2.size(), region_1); in SwapIntervals()
196 size_t idx2, in DuplicateInterval() argument
199 wgsl_code.insert(idx2 + 1, region); in DuplicateInterval()
204 size_t idx2, in ReplaceRegion() argument
208 std::string region_2 = wgsl_code.substr(idx2, id2_len); in ReplaceRegion()
209 wgsl_code.replace(idx2, region_2.size(), region_1); in ReplaceRegion()

1234