178 * @param d1 pointer to double one |
178 * @param d1 pointer to double one |
179 * @param d2 pointer to double two |
179 * @param d2 pointer to double two |
180 * @return -1, if *d1 is less than *d2, 0 if both are equal, |
180 * @return -1, if *d1 is less than *d2, 0 if both are equal, |
181 * 1 if *d1 is greater than *d2 |
181 * 1 if *d1 is greater than *d2 |
182 */ |
182 */ |
183 int cx_cmp_double(void const *d1, void const *d2); |
183 int cx_cmp_double( |
184 |
184 void const *d1, |
185 /** |
185 void const *d2 |
186 * Compares two pointers. |
186 ); |
187 * |
187 |
188 * @param ptr1 pointer one |
188 /** |
189 * @param ptr2 pointer two |
189 * Compares the integer representation of two pointers. |
190 * @return -1 if ptr1 is less than ptr2, 0 if both are equal, |
190 * |
191 * 1 if ptr1 is greater than ptr2 |
191 * @param ptr1 pointer to pointer one (intptr_t const*) |
192 */ |
192 * @param ptr2 pointer to pointer two (intptr_t const*) |
193 int cx_cmp_ptr(void const *ptr1, void const *ptr2); |
193 * @return -1 if *ptr1 is less than *ptr2, 0 if both are equal, |
|
194 * 1 if *ptr1 is greater than *ptr2 |
|
195 */ |
|
196 int cx_cmp_intptr( |
|
197 void const *ptr1, |
|
198 void const *ptr2 |
|
199 ); |
|
200 |
|
201 /** |
|
202 * Compares the unsigned integer representation of two pointers. |
|
203 * |
|
204 * @param ptr1 pointer to pointer one (uintptr_t const*) |
|
205 * @param ptr2 pointer to pointer two (uintptr_t const*) |
|
206 * @return -1 if *ptr1 is less than *ptr2, 0 if both are equal, |
|
207 * 1 if *ptr1 is greater than *ptr2 |
|
208 */ |
|
209 int cx_cmp_uintptr( |
|
210 void const *ptr1, |
|
211 void const *ptr2 |
|
212 ); |
194 |
213 |
195 #ifdef __cplusplus |
214 #ifdef __cplusplus |
196 } // extern "C" |
215 } // extern "C" |
197 #endif |
216 #endif |
198 |
217 |