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