45 using namespace Channel;
53 if ((xoff < 0) || (yoff < 0))
59 if ((xoff < 2) && (yoff < 2) && (xoff == yoff)) {
61 DomInfo<IntView,NoOffset<IntView> >* di =
62 static_cast<Space&>(home).
63 alloc<DomInfo<IntView,NoOffset<IntView> > >(2*(
n+xoff));
64 for (
int i=0;
i<
n;
i++) {
65 di[xoff+
i ].init(
x[
i],
n+xoff);
66 di[2*xoff+
i+
n].init(
y[
i],
n+xoff);
70 di[0].init(x0,
n+xoff);
72 di[
n+xoff].init(y0,
n+xoff);
77 ::
post(home,
n+xoff,di,noff,noff)));
80 ::
post(home,
n+xoff,di,noff,noff)));
83 ValInfo<IntView>* vi =
84 static_cast<Space&>(home).alloc<ValInfo<IntView> >(2*(
n+xoff));
85 for (
int i=0;
i<
n;
i++) {
86 vi[xoff+
i ].init(
x[
i],
n+xoff);
87 vi[2*xoff+
i+
n].init(
y[
i],
n+xoff);
91 vi[0].init(x0,
n+xoff);
93 vi[
n+xoff].init(y0,
n+xoff);
98 ::
post(home,
n+xoff,vi,noff,noff)));
101 ::
post(home,
n+xoff,vi,noff,noff)));
106 DomInfo<IntView,Offset>* di =
107 static_cast<Space&>(home).alloc<DomInfo<IntView,Offset> >(2*
n);
108 for (
int i=0;
i<
n;
i++) {
110 di[
i+
n].init(
y[
i],
n);
116 ::
post(home,
n,di,ox,oy)));
119 ::
post(home,
n,di,ox,oy)));
122 ValInfo<IntView>* vi =
123 static_cast<Space&>(home).alloc<ValInfo<IntView> >(2*
n);
124 for (
int i=0;
i<
n;
i++) {
126 vi[
i+
n].init(
y[
i],
n);
132 ::
post(home,
n,vi,ox,oy)));
135 ::
post(home,
n,vi,ox,oy)));