Home
last modified time | relevance | path

Searched refs:best_j (Results 1 – 10 of 10) sorted by relevance

/external/skia/tests/
DPathOpsQuadIntersectionTest.cpp436 int best_i = 1, best_j = 1; in intersectionFinder() local
443 if (dist[best_i][best_j] > dist[i][j]) { in intersectionFinder()
445 best_j = j; in intersectionFinder()
454 if (best_j == 0) { in intersectionFinder()
456 } else if (best_j == 2) { in intersectionFinder()
459 if (best_i == 1 && best_j == 1) { in intersectionFinder()
DPathOpsCubicIntersectionTest.cpp545 int best_i = 1, best_j = 1; in intersectionFinder() local
552 if (dist[best_i][best_j] > dist[i][j]) { in intersectionFinder()
554 best_j = j; in intersectionFinder()
563 if (best_j == 0) { in intersectionFinder()
565 } else if (best_j == 2) { in intersectionFinder()
568 if (best_i == 1 && best_j == 1) { in intersectionFinder()
/external/skqp/tests/
DPathOpsQuadIntersectionTest.cpp436 int best_i = 1, best_j = 1; in intersectionFinder() local
443 if (dist[best_i][best_j] > dist[i][j]) { in intersectionFinder()
445 best_j = j; in intersectionFinder()
454 if (best_j == 0) { in intersectionFinder()
456 } else if (best_j == 2) { in intersectionFinder()
459 if (best_i == 1 && best_j == 1) { in intersectionFinder()
DPathOpsCubicIntersectionTest.cpp545 int best_i = 1, best_j = 1; in intersectionFinder() local
552 if (dist[best_i][best_j] > dist[i][j]) { in intersectionFinder()
554 best_j = j; in intersectionFinder()
563 if (best_j == 0) { in intersectionFinder()
565 } else if (best_j == 2) { in intersectionFinder()
568 if (best_i == 1 && best_j == 1) { in intersectionFinder()
/external/u-boot/drivers/spi/
Dcf_spi.c201 int best_i, best_j, bestmatch = 0x7FFFFFFF, baud_speed; in cfspi_setup_slave() local
257 for (best_i = 0, best_j = 0, i = 0; i < pbrcnt; i++) { in cfspi_setup_slave()
270 best_j = j; in cfspi_setup_slave()
274 bus_setup |= (DSPI_CTAR_PBR(best_i) | DSPI_CTAR_BR(best_j)); in cfspi_setup_slave()
Dfsl_dspi.c368 int best_i, best_j, bus_clk; in fsl_dspi_cfg_speed() local
378 ret = fsl_dspi_hz_to_spi_baud(&best_i, &best_j, speed, bus_clk); in fsl_dspi_cfg_speed()
382 fsl_dspi_hz_to_spi_baud(&best_i, &best_j, speed, bus_clk); in fsl_dspi_cfg_speed()
385 bus_setup |= (DSPI_CTAR_PBR(best_i) | DSPI_CTAR_BR(best_j)); in fsl_dspi_cfg_speed()
/external/python/cpython2/Modules/
Daudioop.c517 int j, best_j; in audioop_findfit() local
546 best_j = 0; in audioop_findfit()
560 best_j = j; in audioop_findfit()
565 factor = _sum2(cp1+best_j, cp2, len2) / sum_ri_2; in audioop_findfit()
567 return Py_BuildValue("(if)", best_j, factor); in audioop_findfit()
610 int j, best_j; in audioop_findmax() local
631 best_j = 0; in audioop_findmax()
641 best_j = j; in audioop_findmax()
646 return PyInt_FromLong(best_j); in audioop_findmax()
/external/python/cpython3/Modules/
Daudioop.c612 Py_ssize_t j, best_j; in audioop_findfit_impl() local
636 best_j = 0; in audioop_findfit_impl()
650 best_j = j; in audioop_findfit_impl()
655 factor = _sum2(cp1+best_j, cp2, len2) / sum_ri_2; in audioop_findfit_impl()
657 return Py_BuildValue("(nf)", best_j, factor); in audioop_findfit_impl()
723 Py_ssize_t j, best_j; in audioop_findmax_impl() local
742 best_j = 0; in audioop_findmax_impl()
752 best_j = j; in audioop_findmax_impl()
757 return PyLong_FromSsize_t(best_j); in audioop_findmax_impl()
/external/python/cpython2/Lib/
Ddifflib.py990 best_ratio, best_i, best_j = cruncher.ratio(), i, j
999 best_i, best_j, best_ratio = eqi, eqj, 1.0
1008 for line in self._fancy_helper(a, alo, best_i, b, blo, best_j):
1012 aelt, belt = a[best_i], b[best_j]
1038 for line in self._fancy_helper(a, best_i+1, ahi, b, best_j+1, bhi):
/external/python/cpython3/Lib/
Ddifflib.py975 best_ratio, best_i, best_j = cruncher.ratio(), i, j
983 best_i, best_j, best_ratio = eqi, eqj, 1.0
992 yield from self._fancy_helper(a, alo, best_i, b, blo, best_j)
995 aelt, belt = a[best_i], b[best_j]
1020 yield from self._fancy_helper(a, best_i+1, ahi, b, best_j+1, bhi)