Gromacs  2024.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
int64_to_int.h File Reference
#include "gromacs/utility/futil.h"
+ Include dependency graph for int64_to_int.h:
+ This graph shows which files directly or indirectly include this file:


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.


int int64_to_int (int64_t step, const char *warn)
 Convert a int64_t value to int. More...

Function Documentation

int int64_to_int ( int64_t  step,
const char *  warn 

Convert a int64_t value to int.

[in]stepThe step number (or other int64)
[in]warnIf 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.
the truncated step number.