#define mpiMotionTYPE(type) ((type) & MPIMotionTypeMASK)
MotionType masks off all other bits in type, leaving the motion type.