58 int Np, Iam, dest, msgid, Rmsgid, np2, bit, ierr;
67 for (np2=4; np2 < Np; np2 <<= 1);
68 if (np2 > Np) np2 >>= 1;
79 else if (Iam < (Np^np2))
88 for (bit=1; (bit ^ np2); bit <<= 1)
91 ierr=MPI_Sendrecv(bp->
Buff, bp->
N, bp->
dtype, dest, msgid, bp2->
Buff,
100 if (Iam < (Np^np2))
BI_Rsend(ctxt, (Iam ^ np2), Rmsgid, bp);