#ifdef RAW
unsigned msgHdr;
int self_y, self_x, target_y, target_x;
- int targetcore = ((int)ptr >> 1) % TOTALCORE;
+ int targetcore = ((int)ptr >> 5) % TOTALCORE;
// for 32 bit machine, the size is always 4 words
//int msgsize = sizeof(int) * 4;
int msgsize = 4;
#ifdef RAW
unsigned msgHdr;
int self_y, self_x, target_y, target_x;
- int targetcore = ((int)ptr >> 1) % TOTALCORE;
+ int targetcore = ((int)ptr >> 5) % TOTALCORE;
// for 32 bit machine, the size is always 3 words
//int msgsize = sizeof(int) * 3;
int msgsize = 3;
bool getreadlock_I(void * ptr) {
unsigned msgHdr;
int self_y, self_x, target_y, target_x;
- int targetcore = ((int)ptr >> 1) % TOTALCORE;
+ int targetcore = ((int)ptr >> 5) % TOTALCORE;
// for 32 bit machine, the size is always 4 words
//int msgsize = sizeof(int) * 4;
int msgsize = 4;
void releasereadlock_I(void * ptr) {
unsigned msgHdr;
int self_y, self_x, target_y, target_x;
- int targetcore = ((int)ptr >> 1) % TOTALCORE;
+ int targetcore = ((int)ptr >> 5) % TOTALCORE;
// for 32 bit machine, the size is always 3 words
//int msgsize = sizeof(int) * 3;
int msgsize = 3;
#ifdef RAW
unsigned msgHdr;
int self_y, self_x, target_y, target_x;
- int targetcore = ((int)ptr >> 1) % TOTALCORE;
+ int targetcore = ((int)ptr >> 5) % TOTALCORE;
// for 32 bit machine, the size is always 4 words
//int msgsize = sizeof(int) * 4;
int msgsize= 4;
#ifdef RAW
unsigned msgHdr;
int self_y, self_x, target_y, target_x;
- int targetcore = ((int)ptr >> 1) % TOTALCORE;
+ int targetcore = ((int)ptr >> 5) % TOTALCORE;
// for 32 bit machine, the size is always 3 words
//int msgsize = sizeof(int) * 3;
int msgsize = 3;
} else {
((void (*) (void **)) currtpd->task->taskptr)(taskpointerarray);
}
-
if(lock) {
#ifdef RAW
for(i = 0; i < numparams; ++i) {