diff -r 7be3ae7ffb58 -r 85f55abea563 src/ucx/utils.h --- a/src/ucx/utils.h Thu May 03 09:49:38 2018 +0200 +++ b/src/ucx/utils.h Thu May 03 10:09:49 2018 +0200 @@ -175,6 +175,25 @@ */ int ucx_longintcmp(const void *i1, const void *i2, void *data); + +/** + * Distance function for integers of type int. + * @param i1 pointer to integer one + * @param i2 pointer to integer two + * @param data omitted + * @return i1 minus i2 + */ +intmax_t ucx_intdist(const void *i1, const void *i2, void *data); + +/** + * Distance function for integers of type long int. + * @param i1 pointer to long integer one + * @param i2 pointer to long integer two + * @param data omitted + * @return i1 minus i2 + */ +intmax_t ucx_longintdist(const void *i1, const void *i2, void *data); + /** * Compares two real numbers of type float. * @param f1 pointer to float one