173 * @return -1, if *i1 is less than *i2, 0 if both are equal, |
173 * @return -1, if *i1 is less than *i2, 0 if both are equal, |
174 * 1 if *i1 is greater than *i2 |
174 * 1 if *i1 is greater than *i2 |
175 */ |
175 */ |
176 int ucx_longintcmp(const void *i1, const void *i2, void *data); |
176 int ucx_longintcmp(const void *i1, const void *i2, void *data); |
177 |
177 |
|
178 |
|
179 /** |
|
180 * Distance function for integers of type int. |
|
181 * @param i1 pointer to integer one |
|
182 * @param i2 pointer to integer two |
|
183 * @param data omitted |
|
184 * @return i1 minus i2 |
|
185 */ |
|
186 intmax_t ucx_intdist(const void *i1, const void *i2, void *data); |
|
187 |
|
188 /** |
|
189 * Distance function for integers of type long int. |
|
190 * @param i1 pointer to long integer one |
|
191 * @param i2 pointer to long integer two |
|
192 * @param data omitted |
|
193 * @return i1 minus i2 |
|
194 */ |
|
195 intmax_t ucx_longintdist(const void *i1, const void *i2, void *data); |
|
196 |
178 /** |
197 /** |
179 * Compares two real numbers of type float. |
198 * Compares two real numbers of type float. |
180 * @param f1 pointer to float one |
199 * @param f1 pointer to float one |
181 * @param f2 pointer to float two |
200 * @param f2 pointer to float two |
182 * @param data if provided: a pointer to precision (default: 1e-6f) |
201 * @param data if provided: a pointer to precision (default: 1e-6f) |