182 * @return -1, if *i1 is less than *i2, 0 if both are equal, |
182 * @return -1, if *i1 is less than *i2, 0 if both are equal, |
183 * 1 if *i1 is greater than *i2 |
183 * 1 if *i1 is greater than *i2 |
184 */ |
184 */ |
185 int ucx_cmp_longint(const void *i1, const void *i2, void *data); |
185 int ucx_cmp_longint(const void *i1, const void *i2, void *data); |
186 |
186 |
|
187 /** |
|
188 * Compares two integers of type long long. |
|
189 * @param i1 pointer to long long one |
|
190 * @param i2 pointer to long long two |
|
191 * @param data omitted |
|
192 * @return -1, if *i1 is less than *i2, 0 if both are equal, |
|
193 * 1 if *i1 is greater than *i2 |
|
194 */ |
|
195 int ucx_cmp_longlong(const void *i1, const void *i2, void *data); |
|
196 |
|
197 /** |
|
198 * Compares two integers of type int16_t. |
|
199 * @param i1 pointer to int16_t one |
|
200 * @param i2 pointer to int16_t two |
|
201 * @param data omitted |
|
202 * @return -1, if *i1 is less than *i2, 0 if both are equal, |
|
203 * 1 if *i1 is greater than *i2 |
|
204 */ |
|
205 int ucx_cmp_int16(const void *i1, const void *i2, void *data); |
|
206 |
|
207 /** |
|
208 * Compares two integers of type int32_t. |
|
209 * @param i1 pointer to int32_t one |
|
210 * @param i2 pointer to int32_t two |
|
211 * @param data omitted |
|
212 * @return -1, if *i1 is less than *i2, 0 if both are equal, |
|
213 * 1 if *i1 is greater than *i2 |
|
214 */ |
|
215 int ucx_cmp_int32(const void *i1, const void *i2, void *data); |
|
216 |
|
217 /** |
|
218 * Compares two integers of type int64_t. |
|
219 * @param i1 pointer to int64_t one |
|
220 * @param i2 pointer to int64_t two |
|
221 * @param data omitted |
|
222 * @return -1, if *i1 is less than *i2, 0 if both are equal, |
|
223 * 1 if *i1 is greater than *i2 |
|
224 */ |
|
225 int ucx_cmp_int64(const void *i1, const void *i2, void *data); |
|
226 |
|
227 /** |
|
228 * Compares two integers of type unsigned int. |
|
229 * @param i1 pointer to unsigned integer one |
|
230 * @param i2 pointer to unsigned integer two |
|
231 * @param data omitted |
|
232 * @return -1, if *i1 is less than *i2, 0 if both are equal, |
|
233 * 1 if *i1 is greater than *i2 |
|
234 */ |
|
235 int ucx_cmp_uint(const void *i1, const void *i2, void *data); |
|
236 |
|
237 /** |
|
238 * Compares two integers of type unsigned long int. |
|
239 * @param i1 pointer to unsigned long integer one |
|
240 * @param i2 pointer to unsigned long integer two |
|
241 * @param data omitted |
|
242 * @return -1, if *i1 is less than *i2, 0 if both are equal, |
|
243 * 1 if *i1 is greater than *i2 |
|
244 */ |
|
245 int ucx_cmp_ulongint(const void *i1, const void *i2, void *data); |
|
246 |
|
247 /** |
|
248 * Compares two integers of type unsigned long long. |
|
249 * @param i1 pointer to unsigned long long one |
|
250 * @param i2 pointer to unsigned long long two |
|
251 * @param data omitted |
|
252 * @return -1, if *i1 is less than *i2, 0 if both are equal, |
|
253 * 1 if *i1 is greater than *i2 |
|
254 */ |
|
255 int ucx_cmp_ulonglong(const void *i1, const void *i2, void *data); |
|
256 |
|
257 /** |
|
258 * Compares two integers of type uint16_t. |
|
259 * @param i1 pointer to uint16_t one |
|
260 * @param i2 pointer to uint16_t two |
|
261 * @param data omitted |
|
262 * @return -1, if *i1 is less than *i2, 0 if both are equal, |
|
263 * 1 if *i1 is greater than *i2 |
|
264 */ |
|
265 int ucx_cmp_uint16(const void *i1, const void *i2, void *data); |
|
266 |
|
267 /** |
|
268 * Compares two integers of type uint32_t. |
|
269 * @param i1 pointer to uint32_t one |
|
270 * @param i2 pointer to uint32_t two |
|
271 * @param data omitted |
|
272 * @return -1, if *i1 is less than *i2, 0 if both are equal, |
|
273 * 1 if *i1 is greater than *i2 |
|
274 */ |
|
275 int ucx_cmp_uint32(const void *i1, const void *i2, void *data); |
|
276 |
|
277 /** |
|
278 * Compares two integers of type uint64_t. |
|
279 * @param i1 pointer to uint64_t one |
|
280 * @param i2 pointer to uint64_t two |
|
281 * @param data omitted |
|
282 * @return -1, if *i1 is less than *i2, 0 if both are equal, |
|
283 * 1 if *i1 is greater than *i2 |
|
284 */ |
|
285 int ucx_cmp_uint64(const void *i1, const void *i2, void *data); |
187 |
286 |
188 /** |
287 /** |
189 * Distance function for integers of type int. |
288 * Distance function for integers of type int. |
190 * @param i1 pointer to integer one |
289 * @param i1 pointer to integer one |
191 * @param i2 pointer to integer two |
290 * @param i2 pointer to integer two |
200 * @param i2 pointer to long integer two |
299 * @param i2 pointer to long integer two |
201 * @param data omitted |
300 * @param data omitted |
202 * @return i1 minus i2 |
301 * @return i1 minus i2 |
203 */ |
302 */ |
204 intmax_t ucx_dist_longint(const void *i1, const void *i2, void *data); |
303 intmax_t ucx_dist_longint(const void *i1, const void *i2, void *data); |
|
304 |
|
305 /** |
|
306 * Distance function for integers of type long long. |
|
307 * @param i1 pointer to long long one |
|
308 * @param i2 pointer to long long two |
|
309 * @param data omitted |
|
310 * @return i1 minus i2 |
|
311 */ |
|
312 intmax_t ucx_dist_longlong(const void *i1, const void *i2, void *data); |
|
313 |
|
314 /** |
|
315 * Distance function for integers of type int16_t. |
|
316 * @param i1 pointer to int16_t one |
|
317 * @param i2 pointer to int16_t two |
|
318 * @param data omitted |
|
319 * @return i1 minus i2 |
|
320 */ |
|
321 intmax_t ucx_dist_int16(const void *i1, const void *i2, void *data); |
|
322 |
|
323 /** |
|
324 * Distance function for integers of type int32_t. |
|
325 * @param i1 pointer to int32_t one |
|
326 * @param i2 pointer to int32_t two |
|
327 * @param data omitted |
|
328 * @return i1 minus i2 |
|
329 */ |
|
330 intmax_t ucx_dist_int32(const void *i1, const void *i2, void *data); |
|
331 |
|
332 /** |
|
333 * Distance function for integers of type int64_t. |
|
334 * @param i1 pointer to int64_t one |
|
335 * @param i2 pointer to int64_t two |
|
336 * @param data omitted |
|
337 * @return i1 minus i2 |
|
338 */ |
|
339 intmax_t ucx_dist_int64(const void *i1, const void *i2, void *data); |
|
340 |
|
341 /** |
|
342 * Distance function for integers of type unsigned int. |
|
343 * @param i1 pointer to unsigned integer one |
|
344 * @param i2 pointer to unsigned integer two |
|
345 * @param data omitted |
|
346 * @return i1 minus i2 |
|
347 */ |
|
348 intmax_t ucx_dist_uint(const void *i1, const void *i2, void *data); |
|
349 |
|
350 /** |
|
351 * Distance function for integers of type unsigned long int. |
|
352 * @param i1 pointer to unsigned long integer one |
|
353 * @param i2 pointer to unsigned long integer two |
|
354 * @param data omitted |
|
355 * @return i1 minus i2 |
|
356 */ |
|
357 intmax_t ucx_dist_ulongint(const void *i1, const void *i2, void *data); |
|
358 |
|
359 /** |
|
360 * Distance function for integers of type unsigned long long. |
|
361 * @param i1 pointer to unsigned long long one |
|
362 * @param i2 pointer to unsigned long long two |
|
363 * @param data omitted |
|
364 * @return i1 minus i2 |
|
365 */ |
|
366 intmax_t ucx_dist_ulonglong(const void *i1, const void *i2, void *data); |
|
367 |
|
368 /** |
|
369 * Distance function for integers of type uint16_t. |
|
370 * @param i1 pointer to uint16_t one |
|
371 * @param i2 pointer to uint16_t two |
|
372 * @param data omitted |
|
373 * @return i1 minus i2 |
|
374 */ |
|
375 intmax_t ucx_dist_uint16(const void *i1, const void *i2, void *data); |
|
376 |
|
377 /** |
|
378 * Distance function for integers of type uint32_t. |
|
379 * @param i1 pointer to uint32_t one |
|
380 * @param i2 pointer to uint32_t two |
|
381 * @param data omitted |
|
382 * @return i1 minus i2 |
|
383 */ |
|
384 intmax_t ucx_dist_uint32(const void *i1, const void *i2, void *data); |
|
385 |
|
386 /** |
|
387 * Distance function for integers of type uint64_t. |
|
388 * @param i1 pointer to uint64_t one |
|
389 * @param i2 pointer to uint64_t two |
|
390 * @param data omitted |
|
391 * @return i1 minus i2 |
|
392 */ |
|
393 intmax_t ucx_dist_uint64(const void *i1, const void *i2, void *data); |
205 |
394 |
206 /** |
395 /** |
207 * Compares two real numbers of type float. |
396 * Compares two real numbers of type float. |
208 * @param f1 pointer to float one |
397 * @param f1 pointer to float one |
209 * @param f2 pointer to float two |
398 * @param f2 pointer to float two |