Lines Matching refs:neighbors
655 static const MV neighbors[4] = {{0, -1}, {1, 0}, {0, 1}, {-1, 0}};
659 const MV this_mv = {br + neighbors[i].row,
660 bc + neighbors[i].col};
670 const MV this_mv = {br + neighbors[i].row,
671 bc + neighbors[i].col};
690 // are 4 1-away neighbors, and sad_list is non-null
938 static const MV neighbors[4] = {{0, -1}, {1, 0}, {0, 1}, {-1, 0}};
943 const MV this_mv = {br + neighbors[i].row,
944 bc + neighbors[i].col};
951 const MV this_mv = {br + neighbors[i].row,
952 bc + neighbors[i].col};
964 const MV this_mv = {br + neighbors[i].row,
965 bc + neighbors[i].col};
1633 const MV neighbors[4] = {{ -1, 0}, {0, -1}, {0, 1}, {1, 0}};
1663 const MV mv = {ref_mv->row + neighbors[j].row,
1664 ref_mv->col + neighbors[j].col};
1674 const MV mv = {ref_mv->row + neighbors[j].row,
1675 ref_mv->col + neighbors[j].col};
1695 ref_mv->row += neighbors[best_site].row;
1696 ref_mv->col += neighbors[best_site].col;
1712 const MV neighbors[8] = {{-1, 0}, {0, -1}, {0, 1}, {1, 0},
1727 const MV mv = {ref_mv->row + neighbors[j].row,
1728 ref_mv->col + neighbors[j].col};
1746 ref_mv->row += neighbors[best_site].row;
1747 ref_mv->col += neighbors[best_site].col;