new files for range prefetching
[IRC.git] / Robust / src / Runtime / DSTM / interface / prefetch.h
1 #include "queue.h"
2 #include "dstm.h"
3
4 #define GET_STRIDE(x) ((x & 0x7000) >> 12)
5 #define GET_RANGE(x) (x & 0x0fff)
6 #define GET_STRIDEINC(x) ((x & 0x8000) >> 15)
7 void rangePrefetch(int, int, unsigned int *, unsigned short *, short *offset);
8 void *transPrefetchNew();
9 void checkIfLocal(char *ptr);
10 int isOidAvail(unsigned int oid);
11 int lookForObjs(int*, short *, int *, int *, int *);
12
13 /************* Internal functions *******************/
14 int getsize(short *ptr, int n);