210 * @param data if provided: a pointer to precision (default: 1e-6f) |
210 * @param data if provided: a pointer to precision (default: 1e-6f) |
211 * @return -1, if *f1 is less than *f2, 0 if both are equal, |
211 * @return -1, if *f1 is less than *f2, 0 if both are equal, |
212 * 1 if *f1 is greater than *f2 |
212 * 1 if *f1 is greater than *f2 |
213 */ |
213 */ |
214 |
214 |
215 int ucx_floatcmp(const void *f1, const void *f2, void *data); |
215 int ucx_cmp_float(const void *f1, const void *f2, void *data); |
216 |
216 |
217 /** |
217 /** |
218 * Compares two real numbers of type double. |
218 * Compares two real numbers of type double. |
219 * @param d1 pointer to double one |
219 * @param d1 pointer to double one |
220 * @param d2 pointer to double two |
220 * @param d2 pointer to double two |
221 * @param data if provided: a pointer to precision (default: 1e-14) |
221 * @param data if provided: a pointer to precision (default: 1e-14) |
222 * @return -1, if *d1 is less than *d2, 0 if both are equal, |
222 * @return -1, if *d1 is less than *d2, 0 if both are equal, |
223 * 1 if *d1 is greater than *d2 |
223 * 1 if *d1 is greater than *d2 |
224 */ |
224 */ |
225 int ucx_doublecmp(const void *d1, const void *d2, void *data); |
225 int ucx_cmp_double(const void *d1, const void *d2, void *data); |
226 |
226 |
227 /** |
227 /** |
228 * Compares two pointers. |
228 * Compares two pointers. |
229 * @param ptr1 pointer one |
229 * @param ptr1 pointer one |
230 * @param ptr2 pointer two |
230 * @param ptr2 pointer two |