Home
last modified time | relevance | path

Searched refs:line1 (Results 1 – 25 of 67) sorted by relevance

123

/third_party/skia/tests/
DPathOpsLineIntersectionTest.cpp87 static void check_results(skiatest::Reporter* reporter, const SkDLine& line1, const SkDLine& line2, in check_results() argument
90 SkDPoint result1 = line1.ptAtT(ts[0][i]); in check_results()
107 static void testOne(skiatest::Reporter* reporter, const SkDLine& line1, const SkDLine& line2, in testOne() argument
109 SkASSERT(ValidLine(line1)); in testOne()
113 int pts = i.intersect(line1, line2); in testOne()
116 check_results(reporter, line1, line2, i, nearAllowed); in testOne()
117 if (line1[0] == line1[1] || line2[0] == line2[1]) { in testOne()
120 if (line1[0].fY == line1[1].fY) { in testOne()
121 double left = std::min(line1[0].fX, line1[1].fX); in testOne()
122 double right = std::max(line1[0].fX, line1[1].fX); in testOne()
[all …]
/third_party/flutter/skia/tests/
DPathOpsLineIntersectionTest.cpp87 static void check_results(skiatest::Reporter* reporter, const SkDLine& line1, const SkDLine& line2, in check_results() argument
90 SkDPoint result1 = line1.ptAtT(ts[0][i]); in check_results()
107 static void testOne(skiatest::Reporter* reporter, const SkDLine& line1, const SkDLine& line2, in testOne() argument
109 SkASSERT(ValidLine(line1)); in testOne()
113 int pts = i.intersect(line1, line2); in testOne()
116 check_results(reporter, line1, line2, i, nearAllowed); in testOne()
117 if (line1[0] == line1[1] || line2[0] == line2[1]) { in testOne()
120 if (line1[0].fY == line1[1].fY) { in testOne()
121 double left = SkTMin(line1[0].fX, line1[1].fX); in testOne()
122 double right = SkTMax(line1[0].fX, line1[1].fX); in testOne()
[all …]
/third_party/python/Lib/idlelib/idle_test/
Dtest_history.py12 line1 = 'a = 7' variable
43 self.history.store(line1)
44 self.assertEqual(self.history.history, [line1])
46 self.assertEqual(self.history.history, [line1, line2])
47 self.history.store(line1)
48 self.assertEqual(self.history.history, [line2, line1])
51 self.history.prefix = line1
83 self.history.history = [line1, line2]
110 test(True, line1, prefix, 0)
116 test(False, line1, prefix, 0)
[all …]
Dmock_tk.py251 line1, char1 = self._decode(index1)
254 return line1 < line2 or line1 == line2 and char1 < char2
256 return line1 < line2 or line1 == line2 and char1 <= char2
258 return line1 > line2 or line1 == line2 and char1 > char2
260 return line1 > line2 or line1 == line2 and char1 >= char2
262 return line1 == line2 and char1 == char2
264 return line1 != line2 or char1 != char2
/third_party/boost/tools/quickbook/test/unit/
Dsource_map_test.cpp21 quickbook::string_iterator line1 = fake_file->source().begin(); in simple_map_tests() local
38 builder.add(quickbook::string_view(line1, line2_end - line1)); in simple_map_tests()
48 f1->position_of(f1->source().begin() + (line1_end - line1)), in simple_map_tests()
49 quickbook::file_position(1, line1_end - line1 + 1)); in simple_map_tests()
51 f1->position_of(f1->source().begin() + (line2 - line1)), in simple_map_tests()
60 builder.add(quickbook::string_view(line1, line1_end - line1)); in simple_map_tests()
64 quickbook::string_view(source.begin(), line1_end - line1)); in simple_map_tests()
73 quickbook::file_position(1, line1_end - line1 + 1)); in simple_map_tests()
96 builder.add(quickbook::string_view(line1, line1_end - line1)); in simple_map_tests()
112 quickbook::file_position(1, (line1_end - line1 + 1))); in simple_map_tests()
[all …]
/third_party/gstreamer/gstplugins_bad/gst/ivtc/
Dgstivtc.c371 reconstruct_line (guint8 * line1, guint8 * line2, int i, int a, int b, int c, in reconstruct_line() argument
376 x = line1[i - 3] * a; in reconstruct_line()
377 x += line1[i - 2] * b; in reconstruct_line()
378 x += line1[i - 1] * c; in reconstruct_line()
379 x += line1[i - 0] * d; in reconstruct_line()
410 guint8 *line1 = GET_LINE (&field->frame, k, j - 1); in reconstruct_single() local
418 dx = -line1[i - 1] - line2[i - 1] + line1[i + 1] + line2[i + 1]; in reconstruct_single()
421 dy = -line1[i - 1] - 2 * line1[i] - line1[i + 1] in reconstruct_single()
429 dest[i] = (line1[i] + line2[i] + 1) >> 1; in reconstruct_single()
432 dest[i] = reconstruct_line (line1, line2, i, 0, 0, 0, 16); in reconstruct_single()
[all …]
/third_party/ltp/testcases/kernel/fs/mongo/
Dmongo_compare.c54 char line1[100]; in main() local
103 while (fgets(line1, 100, f1)) { in main()
106 if (p = strstr(line1, "\n")) in main()
111 strcpy(line3, line1); in main()
171 if (p1 = strstr(line1, " :")) { in main()
173 strncpy(name_str1, line1, p1 - line1); in main()
196 line1[0] = 0; in main()
/third_party/boost/libs/geometry/doc/src/examples/algorithms/
Dassign_points.cpp48 ls line1, line2, line3; in main() local
50line1 = tuple_list_of(0, 0)(2, 3)(4, 0)(6, 3)(8, 0)(10, 3)(12, 0); /*< tuple_list_of is part of Bo… in main()
52 …boost::geometry::assign_points(line3, line1 | boost::adaptors::filtered(x_between<int>(4, 8))); /*… in main()
54 std::cout << "line 1: " << boost::geometry::dsv(line1) << std::endl; in main()
Dintersects_segment.cpp23 bg::model::linestring<P> line1, line2; in main() local
25 boost::geometry::read_wkt("linestring(1 1,2 2)", line1); in main()
28 bool b = boost::geometry::intersects(line1, line2); in main()
Dintersects_linestring.cpp23 boost::geometry::model::linestring<P> line1, line2; in main() local
25 boost::geometry::read_wkt("linestring(1 1,2 2,3 3)", line1); in main()
28 bool b = boost::geometry::intersects(line1, line2); in main()
Dintersection_ls_ls_point.cpp28 std::vector<P> line1, line2; in BOOST_GEOMETRY_REGISTER_LINESTRING_TEMPLATED() local
29 boost::geometry::read_wkt("linestring(1 1,2 2,3 1)", line1); in BOOST_GEOMETRY_REGISTER_LINESTRING_TEMPLATED()
33 boost::geometry::intersection(line1, line2, intersection_points); in BOOST_GEOMETRY_REGISTER_LINESTRING_TEMPLATED()
Dcrosses.cpp26 bg::model::linestring<bg::model::d2::point_xy<double> > line1; in main() local
27 bg::read_wkt("LINESTRING(1 1,2 2,4 4)", line1); in main()
28 bool check_crosses = bg::crosses(poly, line1); in main()
/third_party/boost/libs/geometry/test/algorithms/
Dtransform.cpp68 line1_type line1; in test_transform_linestring() local
69 line1.push_back(bg::make<P1>(1, 1)); in test_transform_linestring()
70 line1.push_back(bg::make<P1>(2, 2)); in test_transform_linestring()
71 boost::variant<line1_type> v(line1); in test_transform_linestring()
74 for (BOOST_AUTO(p, line1.begin()); p != line1.end(); ++p) in test_transform_linestring()
82 check_transform(line1, expected); in test_transform_linestring()
/third_party/gn/src/base/files/
Dfile_util.cc88 std::string line1, line2; in TextContentsEqual() local
89 getline(file1, line1); in TextContentsEqual()
98 std::string::size_type end1 = line1.find_last_not_of("\r\n"); in TextContentsEqual()
100 line1.clear(); in TextContentsEqual()
101 else if (end1 + 1 < line1.length()) in TextContentsEqual()
102 line1.erase(end1 + 1); in TextContentsEqual()
110 if (line1 != line2) in TextContentsEqual()
/third_party/boost/libs/numeric/interval/examples/
Dfilter.cpp65 const double* line1 = a[i]; in det_sign_algo1() local
68 line2[j] = line1[j]; in det_sign_algo1()
92 I *line1 = u[p[i]]; in det_sign_algo1() local
93 const I &pivot = line1[i]; in det_sign_algo1()
98 for(int j = i + 1; j < dim; j++) line2[j] -= fact * line1[j]; in det_sign_algo1()
137 double *line1 = lu[p[i]]; in det_sign_algo2() local
138 double pivot = line1[i]; in det_sign_algo2()
144 for(int j = i + 1; j < dim; j++) line2[j] -= line1[j] * fact; in det_sign_algo2()
/third_party/boost/libs/log/test/run/
Dform_named_scope.cpp119 const unsigned int line1 = __LINE__; in BOOST_AUTO_TEST_CASE_TEMPLATE() local
120 sentry scope1(data::scope1(), data::file(), line1); in BOOST_AUTO_TEST_CASE_TEMPLATE()
140 strm << data::scope1() << " (" << data::file() << ":" << line1 << ")->" in BOOST_AUTO_TEST_CASE_TEMPLATE()
279 const unsigned int line1 = __LINE__; in BOOST_AUTO_TEST_CASE_TEMPLATE() local
280 sentry scope1(data::scope1(), data::file(), line1); in BOOST_AUTO_TEST_CASE_TEMPLATE()
307 const unsigned int line1 = __LINE__; in BOOST_AUTO_TEST_CASE_TEMPLATE() local
308 sentry scope1(data::scope1(), data::posix_file(), line1); in BOOST_AUTO_TEST_CASE_TEMPLATE()
319 strm << data::scope1() << " (posix_file.cpp:" << line1 << ")"; in BOOST_AUTO_TEST_CASE_TEMPLATE()
340 const unsigned int line1 = __LINE__; in BOOST_AUTO_TEST_CASE_TEMPLATE() local
341 sentry scope1(data::scope1(), data::windows_file1(), line1); in BOOST_AUTO_TEST_CASE_TEMPLATE()
[all …]
Dattr_named_scope.cpp68 const unsigned int line1 = __LINE__; in BOOST_AUTO_TEST_CASE() local
69 sentry scope1(scope_data::scope1(), scope_data::file(), line1); in BOOST_AUTO_TEST_CASE()
85 BOOST_CHECK(s1.line == line1); in BOOST_AUTO_TEST_CASE()
107 BOOST_CHECK(s2.line == line1); in BOOST_AUTO_TEST_CASE()
133 BOOST_CHECK(s4.line == line1); in BOOST_AUTO_TEST_CASE()
/third_party/python/Lib/unittest/test/testmock/
Dtestwith.py206 line1 = h.readline()
209 self.assertEqual(line1, 'foo\n')
242 line1 = next(h)
245 self.assertEqual(line1, 'foo\n')
280 line1 = f.readline()
283 self.assertEqual(line1, b'abc\n')
315 line1 = h.readline()
317 self.assertEqual(line1, 'foo\n')
323 line1 = h.readline()
325 self.assertEqual(line1, 'foo\n')
/third_party/python/Tools/scripts/
Dfindnocoding.py59 line1 = infile.readline()
62 if (get_declaration(line1) or
63 blank_re.match(line1) and get_declaration(line2)):
70 if has_correct_encoding(line1+line2+rest, "utf-8"):
/third_party/pixman/pixman/
Dpixman-ssse3.c162 line_t *line0, *line1; in ssse3_fetch_bilinear_cover() local
175 line1 = &info->lines[y1 & 0x01]; in ssse3_fetch_bilinear_cover()
183 if (line1->y != y1) in ssse3_fetch_bilinear_cover()
186 &iter->image->bits, line1, y1, fx, ux, iter->width); in ssse3_fetch_bilinear_cover()
198 __m128i bot0 = _mm_load_si128 ((__m128i *)(line1->buffer + i)); in ssse3_fetch_bilinear_cover()
200 __m128i bot1 = _mm_load_si128 ((__m128i *)(line1->buffer + i + 2)); in ssse3_fetch_bilinear_cover()
232 __m128i bot0 = _mm_load_si128 ((__m128i *)(line1->buffer + i)); in ssse3_fetch_bilinear_cover()
/third_party/mbedtls/tests/src/
Dhelpers.c98 memset( mbedtls_test_info.line1, 0, sizeof( mbedtls_test_info.line1 ) ); in mbedtls_test_info_reset()
114 (void) mbedtls_snprintf( mbedtls_test_info.line1, in mbedtls_test_equal()
115 sizeof( mbedtls_test_info.line1 ), in mbedtls_test_equal()
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/
Dconv_depthwise_fp16.c171 float16_t *line1 = lines[1]; in ConvDw3x3InitTopFp16() local
176 ConvDw3x3RowLeftFp16(src, line1, lw, channel); in ConvDw3x3InitTopFp16()
180 ConvDw3x3RowMiddleFp16(src + (ow - 1) * channel, line1 + 2 * ow * 8, lw, channel); in ConvDw3x3InitTopFp16()
185 ConvDw3x3RowRightFp16(src + (ow - 1) * channel, line1 + 2 * ow * 8, lw, channel); in ConvDw3x3InitTopFp16()
188 ConvDw3x3RowSingleFp16(src + (ow - 1) * channel, line1 + 2 * ow * 8, lw, channel); in ConvDw3x3InitTopFp16()
195 float16_t *line1 = lines[1]; in ConvDw3x3InitRowFp16() local
199 ConvDw3x3RowLeftFp16(src, line1, lw, channel); in ConvDw3x3InitRowFp16()
204 ConvDw3x3RowMiddleFp16(src + (ow - 1) * channel, line1 + 2 * ow * 8, lw, channel); in ConvDw3x3InitRowFp16()
210 ConvDw3x3RowRightFp16(src + (ow - 1) * channel, line1 + 2 * ow * 8, lw, channel); in ConvDw3x3InitRowFp16()
214 ConvDw3x3RowSingleFp16(src + (ow - 1) * channel, line1 + 2 * ow * 8, lw, channel); in ConvDw3x3InitRowFp16()
[all …]
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/
Dresize_fp32.h41 … const float *y_bottom_weights, const float *x_left_weights, float *line0, float *line1,
55 … const float *y_bottom_weights, const float *x_left_weights, float *line0, float *line1,
/third_party/typescript/src/testRunner/unittests/tsserver/
DtextStorage.ts46 const { line: line1, offset: offset1 } = ts1.positionToLineOffset(pos);
48 …assert.strictEqual(line1, line2, `positionToLineOffset ${pos}::line:: expected ${line1} to equal $…
/third_party/curl/tests/data/
Dtest17335 line1
67 line1

123