| 1 |
/* |
| 2 |
* Copyright(C) 1999-2020, 2022 National Technology & Engineering Solutions |
| 3 |
* of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with |
| 4 |
* NTESS, the U.S. Government retains certain rights in this software. |
| 5 |
* |
| 6 |
* See packages/seacas/LICENSE for details |
| 7 |
*/ |
| 8 |
#pragma once |
| 9 |
|
| 10 |
/*****************************************************************************/ |
| 11 |
/* This file contains defines that are common to both nem_spread, and */ |
| 12 |
/* nem_join. Most of them were taken from rf_salsa.h which is unique */ |
| 13 |
/* to nem_spread. */ |
| 14 |
/*****************************************************************************/ |
| 15 |
|
| 16 |
/* |
| 17 |
* Default value of the chunk size (in bytes) for use in I/O and message |
| 18 |
* passing |
| 19 |
*/ |
| 20 |
|
| 21 |
#ifndef MAX_CHUNK_SIZE |
| 22 |
#define MAX_CHUNK_SIZE 1073741824 |
| 23 |
/* Small message size for debugging purposes */ |
| 24 |
/* #define MAX_CHUNK_SIZE 16384 */ |
| 25 |
#endif |
| 26 |
|
| 27 |
#define PEX_MAX(x, y) (((x) > (y)) ? (x) : (y)) /* max function */ |
| 28 |
#define PEX_MIN(x, y) (((x) < (y)) ? (x) : (y)) /* min function */ |