Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  MyMPI.h
Language: C/C++
Code:
#define BLOCK_LOW (id,p,n) ((id)*(n)/(p))
#define BLOCK_HIGH (id,p,n) (BLOCK_LOW((id)+1,p,n) - 1)
#define BLOCK_SIZE (id,p,n) (BLOCK_LOW((id)+1) - BLOCK_LOW(id))
#define BLOCK_OWNER (index,p,n) (((p)*((index)+1)-1/(n)))
Comments: