src/utils.c

changeset 285
7be3ae7ffb58
parent 259
2f5dea574a75
child 286
85f55abea563
     1.1 --- a/src/utils.c	Thu May 03 09:26:06 2018 +0200
     1.2 +++ b/src/utils.c	Thu May 03 09:49:38 2018 +0200
     1.3 @@ -106,6 +106,16 @@
     1.4     }
     1.5  }
     1.6  
     1.7 +int ucx_longintcmp(const void *i1, const void *i2, void *data) {
     1.8 +   int a = *((const long int*) i1);
     1.9 +   int b = *((const long int*) i2);
    1.10 +   if (a == b) {
    1.11 +       return 0;
    1.12 +   } else {
    1.13 +       return a < b ? -1 : 1;
    1.14 +   }
    1.15 +}
    1.16 +
    1.17  int ucx_floatcmp(const void *f1, const void *f2, void *epsilon) {
    1.18     float a = *((const float*) f1);
    1.19     float b = *((const float*) f2);

mercurial