Lines Matching refs:neighbors
657 // Check 4 1-away neighbors if do_refine is true.
660 static const MV neighbors[4] = {{0, -1}, { -1, 0}, {1, 0}, {0, 1}};
666 const MV this_mv = {br + neighbors[i].row,
667 bc + neighbors[i].col};
675 const MV this_mv = {br + neighbors[i].row,
676 bc + neighbors[i].col};
689 br += neighbors[best_site].row;
690 bc += neighbors[best_site].col;
1541 const MV neighbors[4] = {{ -1, 0}, {0, -1}, {0, 1}, {1, 0}};
1559 const MV mv = {ref_mv->row + neighbors[j].row,
1560 ref_mv->col + neighbors[j].col};
1578 ref_mv->row += neighbors[best_site].row;
1579 ref_mv->col += neighbors[best_site].col;
1592 const MV neighbors[4] = {{ -1, 0}, {0, -1}, {0, 1}, {1, 0}};
1624 const MV mv = {ref_mv->row + neighbors[j].row,
1625 ref_mv->col + neighbors[j].col};
1637 const MV mv = {ref_mv->row + neighbors[j].row,
1638 ref_mv->col + neighbors[j].col};
1660 ref_mv->row += neighbors[best_site].row;
1661 ref_mv->col += neighbors[best_site].col;
1678 const MV neighbors[8] = {{-1, 0}, {0, -1}, {0, 1}, {1, 0},
1696 const MV mv = {ref_mv->row + neighbors[j].row,
1697 ref_mv->col + neighbors[j].col};
1717 ref_mv->row += neighbors[best_site].row;
1718 ref_mv->col += neighbors[best_site].col;