Gromacs
2020.4
|
#include "gromacs/utility/futil.h"
Low-level utility for converting 64 bit int to int (the size of which is hardware dependent), printing a warning if an overflow will occur.
Functions | |
int | int64_to_int (int64_t step, const char *warn) |
Convert a int64_t value to int. More... | |
int int64_to_int | ( | int64_t | step, |
const char * | warn | ||
) |
Convert a int64_t value to int.
[in] | step | The step number (or other int64) |
[in] | warn | If warn!=NULL a warning message will be written to stderr when step does not fit in an int, the first line is: "WARNING during %s:", where warn is printed in s. |