diff -r d7e43c4b2992 -r 7be3ae7ffb58 src/utils.c --- a/src/utils.c Thu May 03 09:26:06 2018 +0200 +++ b/src/utils.c Thu May 03 09:49:38 2018 +0200 @@ -106,6 +106,16 @@ } } +int ucx_longintcmp(const void *i1, const void *i2, void *data) { + int a = *((const long int*) i1); + int b = *((const long int*) i2); + if (a == b) { + return 0; + } else { + return a < b ? -1 : 1; + } +} + int ucx_floatcmp(const void *f1, const void *f2, void *epsilon) { float a = *((const float*) f1); float b = *((const float*) f2);