src/utils.c

changeset 286
85f55abea563
parent 285
7be3ae7ffb58
child 292
d9abf53b8397
     1.1 --- a/src/utils.c	Thu May 03 09:49:38 2018 +0200
     1.2 +++ b/src/utils.c	Thu May 03 10:09:49 2018 +0200
     1.3 @@ -116,6 +116,18 @@
     1.4     }
     1.5  }
     1.6  
     1.7 +intmax_t ucx_intdist(const void *i1, const void *i2, void *data) {
     1.8 +   intmax_t a = *((const int*) i1);
     1.9 +   intmax_t b = *((const int*) i2);
    1.10 +   return a - b;
    1.11 +}
    1.12 +
    1.13 +intmax_t ucx_longintdist(const void *i1, const void *i2, void *data) {
    1.14 +   intmax_t a = *((const long int*) i1);
    1.15 +   intmax_t b = *((const long int*) i2);
    1.16 +   return a - b;
    1.17 +}
    1.18 +
    1.19  int ucx_floatcmp(const void *f1, const void *f2, void *epsilon) {
    1.20     float a = *((const float*) f1);
    1.21     float b = *((const float*) f2);

mercurial