| 78 cx_attr_nodiscard |
78 cx_attr_nodiscard |
| 79 cx_attr_export |
79 cx_attr_export |
| 80 int cx_cmp_int(const void *i1, const void *i2); |
80 int cx_cmp_int(const void *i1, const void *i2); |
| 81 |
81 |
| 82 /** |
82 /** |
| 83 * Compares two ints. |
83 * Compares two integers of type int. |
| 84 * |
84 * |
| 85 * @param i1 integer one |
85 * @param i1 integer one |
| 86 * @param i2 integer two |
86 * @param i2 integer two |
| 87 * @retval -1 if the left argument is less than the right argument |
87 * @retval -1 if the left argument is less than the right argument |
| 88 * @retval 0 if both arguments are equal |
88 * @retval 0 if both arguments are equal |
| 108 cx_attr_nodiscard |
108 cx_attr_nodiscard |
| 109 cx_attr_export |
109 cx_attr_export |
| 110 int cx_cmp_longint(const void *i1, const void *i2); |
110 int cx_cmp_longint(const void *i1, const void *i2); |
| 111 |
111 |
| 112 /** |
112 /** |
| 113 * Compares two long ints. |
113 * Compares two integers of type long int. |
| 114 * |
114 * |
| 115 * @param i1 long integer one |
115 * @param i1 long integer one |
| 116 * @param i2 long integer two |
116 * @param i2 long integer two |
| 117 * @retval -1 if the left argument is less than the right argument |
117 * @retval -1 if the left argument is less than the right argument |
| 118 * @retval 0 if both arguments are equal |
118 * @retval 0 if both arguments are equal |
| 138 cx_attr_nodiscard |
138 cx_attr_nodiscard |
| 139 cx_attr_export |
139 cx_attr_export |
| 140 int cx_cmp_longlong(const void *i1, const void *i2); |
140 int cx_cmp_longlong(const void *i1, const void *i2); |
| 141 |
141 |
| 142 /** |
142 /** |
| 143 * Compares two long long ints. |
143 * Compares two integers of type long long. |
| 144 * |
144 * |
| 145 * @param i1 long long int one |
145 * @param i1 long long int one |
| 146 * @param i2 long long int two |
146 * @param i2 long long int two |
| 147 * @retval -1 if the left argument is less than the right argument |
147 * @retval -1 if the left argument is less than the right argument |
| 148 * @retval 0 if both arguments are equal |
148 * @retval 0 if both arguments are equal |
| 258 cx_attr_nodiscard |
258 cx_attr_nodiscard |
| 259 cx_attr_export |
259 cx_attr_export |
| 260 int cx_cmp_uint(const void *i1, const void *i2); |
260 int cx_cmp_uint(const void *i1, const void *i2); |
| 261 |
261 |
| 262 /** |
262 /** |
| 263 * Compares two unsigned ints. |
263 * Compares two integers of type unsigned int. |
| 264 * |
264 * |
| 265 * @param i1 unsigned integer one |
265 * @param i1 unsigned integer one |
| 266 * @param i2 unsigned integer two |
266 * @param i2 unsigned integer two |
| 267 * @retval -1 if the left argument is less than the right argument |
267 * @retval -1 if the left argument is less than the right argument |
| 268 * @retval 0 if both arguments are equal |
268 * @retval 0 if both arguments are equal |
| 288 cx_attr_nodiscard |
288 cx_attr_nodiscard |
| 289 cx_attr_export |
289 cx_attr_export |
| 290 int cx_cmp_ulongint(const void *i1, const void *i2); |
290 int cx_cmp_ulongint(const void *i1, const void *i2); |
| 291 |
291 |
| 292 /** |
292 /** |
| 293 * Compares two unsigned long ints. |
293 * Compares two integers of type unsigned long int. |
| 294 * |
294 * |
| 295 * @param i1 unsigned long integer one |
295 * @param i1 unsigned long integer one |
| 296 * @param i2 unsigned long integer two |
296 * @param i2 unsigned long integer two |
| 297 * @retval -1 if the left argument is less than the right argument |
297 * @retval -1 if the left argument is less than the right argument |
| 298 * @retval 0 if both arguments are equal |
298 * @retval 0 if both arguments are equal |
| 318 cx_attr_nodiscard |
318 cx_attr_nodiscard |
| 319 cx_attr_export |
319 cx_attr_export |
| 320 int cx_cmp_ulonglong(const void *i1, const void *i2); |
320 int cx_cmp_ulonglong(const void *i1, const void *i2); |
| 321 |
321 |
| 322 /** |
322 /** |
| 323 * Compares two unsigned long long ints. |
323 * Compares two integers of type unsigned long long. |
| 324 * |
324 * |
| 325 * @param i1 unsigned long long one |
325 * @param i1 unsigned long long one |
| 326 * @param i2 unsigned long long two |
326 * @param i2 unsigned long long two |
| 327 * @retval -1 if the left argument is less than the right argument |
327 * @retval -1 if the left argument is less than the right argument |
| 328 * @retval 0 if both arguments are equal |
328 * @retval 0 if both arguments are equal |
| 468 cx_attr_nodiscard |
468 cx_attr_nodiscard |
| 469 cx_attr_export |
469 cx_attr_export |
| 470 int cx_cmp_double(const void *d1, const void *d2); |
470 int cx_cmp_double(const void *d1, const void *d2); |
| 471 |
471 |
| 472 /** |
472 /** |
| 473 * Convenience function |
473 * Compares two real numbers of type double with precision 1e-14. |
| 474 * |
474 * |
| 475 * @param d1 double one |
475 * @param d1 double one |
| 476 * @param d2 double two |
476 * @param d2 double two |
| 477 * @retval -1 if the left argument is less than the right argument |
477 * @retval -1 if the left argument is less than the right argument |
| 478 * @retval 0 if both arguments are equal |
478 * @retval 0 if both arguments are equal |
| 541 cx_attr_nodiscard |
541 cx_attr_nodiscard |
| 542 cx_attr_export |
542 cx_attr_export |
| 543 int cx_vcmp_uintptr(uintptr_t ptr1, uintptr_t ptr2); |
543 int cx_vcmp_uintptr(uintptr_t ptr1, uintptr_t ptr2); |
| 544 |
544 |
| 545 /** |
545 /** |
| 546 * Compares the pointers specified in the arguments without de-referencing. |
546 * Compares the pointers specified in the arguments without dereferencing. |
| 547 * |
547 * |
| 548 * @param ptr1 pointer one |
548 * @param ptr1 pointer one |
| 549 * @param ptr2 pointer two |
549 * @param ptr2 pointer two |
| 550 * @retval -1 if the left argument is less than the right argument |
550 * @retval -1 if the left argument is less than the right argument |
| 551 * @retval 0 if both arguments are equal |
551 * @retval 0 if both arguments are equal |