#define mpiObjectMapIS_VALID(map,count) \ (((count) >= (sizeof(map) * 8)) || \ (((~((0x1 << (count)) - 1)) & (map)) == 0))
ObjectMapIS_VALID checks if the map is within the count range. If the map is valid, it returns a non-zero value.