src/ucx/utils.h

changeset 285
7be3ae7ffb58
parent 259
2f5dea574a75
child 286
85f55abea563
equal deleted inserted replaced
284:d7e43c4b2992 285:7be3ae7ffb58
164 * 1 if *i1 is greater than *i2 164 * 1 if *i1 is greater than *i2
165 */ 165 */
166 int ucx_intcmp(const void *i1, const void *i2, void *data); 166 int ucx_intcmp(const void *i1, const void *i2, void *data);
167 167
168 /** 168 /**
169 * Compares two integers of type long int.
170 * @param i1 pointer to long integer one
171 * @param i2 pointer to long integer two
172 * @param data omitted
173 * @return -1, if *i1 is less than *i2, 0 if both are equal,
174 * 1 if *i1 is greater than *i2
175 */
176 int ucx_longintcmp(const void *i1, const void *i2, void *data);
177
178 /**
169 * Compares two real numbers of type float. 179 * Compares two real numbers of type float.
170 * @param f1 pointer to float one 180 * @param f1 pointer to float one
171 * @param f2 pointer to float two 181 * @param f2 pointer to float two
172 * @param data if provided: a pointer to precision (default: 1e-6f) 182 * @param data if provided: a pointer to precision (default: 1e-6f)
173 * @return -1, if *f1 is less than *f2, 0 if both are equal, 183 * @return -1, if *f1 is less than *f2, 0 if both are equal,

mercurial