| 1679 | _coordinates[c] = lb + __npy_euclidean_division(bd, p->limits_sizes[c]); |
| 1680 | |
| 1681 | static char* |
| 1682 | get_ptr_circular(PyArrayIterObject* _iter, const npy_intp *coordinates) |
| 1683 | { |
| 1684 | int i; |
| 1685 | npy_intp bd, _coordinates[NPY_MAXDIMS], lb; |
| 1686 | PyArrayNeighborhoodIterObject *niter = (PyArrayNeighborhoodIterObject*)_iter; |
| 1687 | PyArrayIterObject *p = niter->_internal_iter; |
| 1688 | |
| 1689 | for(i = 0; i < niter->nd; ++i) { |
| 1690 | _INF_SET_PTR_CIRCULAR(i) |
| 1691 | } |
| 1692 | return p->translate(p, _coordinates); |
| 1693 | } |
| 1694 | |
| 1695 | #undef _INF_SET_PTR_CIRCULAR |
| 1696 | |