- int i;
- for(i=0; i<ntuples; i++) {
- unsigned short baseindex=(i==0) ? 0 : endoffsets[i-1];
- unsigned short endindex=endoffsets[i];
- unsigned int oid=oidarray[i];
- int newbase;
- int machinenum;
-
- if (oid==0)
- continue;
- //Look up fields locally
- for(newbase=baseindex; newbase<endindex; newbase++) {
- if (!lookupObject(&oid, arryfields[newbase]))
- break;
- //Ended in a null pointer...
+ for(j=0;j<numprefetches;j++) {
+ int siteid = *(GET_SITEID(ptr));
+ int ntuples = *(GET_NTUPLES(ptr));
+ unsigned int * oidarray = GET_PTR_OID(ptr);
+ unsigned short * endoffsets = GET_PTR_EOFF(ptr, ntuples);
+ short * arryfields = GET_PTR_ARRYFLD(ptr, ntuples);
+ int numLocal = 0;
+
+ for(i=0; i<ntuples; i++) {
+ unsigned short baseindex=(i==0) ? 0 : endoffsets[i-1];
+ unsigned short endindex=endoffsets[i];
+ unsigned int oid=oidarray[i];
+ int newbase;
+ int machinenum;
+