ucx
UAP Common Extensions
|
A collection of simple compare functions. More...
#include "common.h"
Go to the source code of this file.
Functions | |
int | cx_cmp_int (void const *i1, void const *i2) |
Compares two integers of type int. | |
int | cx_cmp_longint (void const *i1, void const *i2) |
Compares two integers of type long int. | |
int | cx_cmp_longlong (void const *i1, void const *i2) |
Compares two integers of type long long. | |
int | cx_cmp_int16 (void const *i1, void const *i2) |
Compares two integers of type int16_t. | |
int | cx_cmp_int32 (void const *i1, void const *i2) |
Compares two integers of type int32_t. | |
int | cx_cmp_int64 (void const *i1, void const *i2) |
Compares two integers of type int64_t. | |
int | cx_cmp_uint (void const *i1, void const *i2) |
Compares two integers of type unsigned int. | |
int | cx_cmp_ulongint (void const *i1, void const *i2) |
Compares two integers of type unsigned long int. | |
int | cx_cmp_ulonglong (void const *i1, void const *i2) |
Compares two integers of type unsigned long long. | |
int | cx_cmp_uint16 (void const *i1, void const *i2) |
Compares two integers of type uint16_t. | |
int | cx_cmp_uint32 (void const *i1, void const *i2) |
Compares two integers of type uint32_t. | |
int | cx_cmp_uint64 (void const *i1, void const *i2) |
Compares two integers of type uint64_t. | |
int | cx_cmp_float (void const *f1, void const *f2) |
Compares two real numbers of type float with precision 1e-6f. | |
int | cx_cmp_double (void const *d1, void const *d2) |
Compares two real numbers of type double with precision 1e-14. | |
int | cx_cmp_intptr (void const *ptr1, void const *ptr2) |
Compares the integer representation of two pointers. | |
int | cx_cmp_uintptr (void const *ptr1, void const *ptr2) |
Compares the unsigned integer representation of two pointers. | |
A collection of simple compare functions.
int cx_cmp_double | ( | void const * | d1, |
void const * | d2 | ||
) |
Compares two real numbers of type double with precision 1e-14.
d1 | pointer to double one |
d2 | pointer to double two |
int cx_cmp_float | ( | void const * | f1, |
void const * | f2 | ||
) |
Compares two real numbers of type float with precision 1e-6f.
f1 | pointer to float one |
f2 | pointer to float two |
int cx_cmp_int | ( | void const * | i1, |
void const * | i2 | ||
) |
Compares two integers of type int.
i1 | pointer to integer one |
i2 | pointer to integer two |
int cx_cmp_int16 | ( | void const * | i1, |
void const * | i2 | ||
) |
Compares two integers of type int16_t.
i1 | pointer to int16_t one |
i2 | pointer to int16_t two |
int cx_cmp_int32 | ( | void const * | i1, |
void const * | i2 | ||
) |
Compares two integers of type int32_t.
i1 | pointer to int32_t one |
i2 | pointer to int32_t two |
int cx_cmp_int64 | ( | void const * | i1, |
void const * | i2 | ||
) |
Compares two integers of type int64_t.
i1 | pointer to int64_t one |
i2 | pointer to int64_t two |
int cx_cmp_intptr | ( | void const * | ptr1, |
void const * | ptr2 | ||
) |
Compares the integer representation of two pointers.
ptr1 | pointer to pointer one (intptr_t const*) |
ptr2 | pointer to pointer two (intptr_t const*) |
int cx_cmp_longint | ( | void const * | i1, |
void const * | i2 | ||
) |
Compares two integers of type long int.
i1 | pointer to long integer one |
i2 | pointer to long integer two |
int cx_cmp_longlong | ( | void const * | i1, |
void const * | i2 | ||
) |
Compares two integers of type long long.
i1 | pointer to long long one |
i2 | pointer to long long two |
int cx_cmp_uint | ( | void const * | i1, |
void const * | i2 | ||
) |
Compares two integers of type unsigned int.
i1 | pointer to unsigned integer one |
i2 | pointer to unsigned integer two |
int cx_cmp_uint16 | ( | void const * | i1, |
void const * | i2 | ||
) |
Compares two integers of type uint16_t.
i1 | pointer to uint16_t one |
i2 | pointer to uint16_t two |
int cx_cmp_uint32 | ( | void const * | i1, |
void const * | i2 | ||
) |
Compares two integers of type uint32_t.
i1 | pointer to uint32_t one |
i2 | pointer to uint32_t two |
int cx_cmp_uint64 | ( | void const * | i1, |
void const * | i2 | ||
) |
Compares two integers of type uint64_t.
i1 | pointer to uint64_t one |
i2 | pointer to uint64_t two |
int cx_cmp_uintptr | ( | void const * | ptr1, |
void const * | ptr2 | ||
) |
Compares the unsigned integer representation of two pointers.
ptr1 | pointer to pointer one (uintptr_t const*) |
ptr2 | pointer to pointer two (uintptr_t const*) |
int cx_cmp_ulongint | ( | void const * | i1, |
void const * | i2 | ||
) |
Compares two integers of type unsigned long int.
i1 | pointer to unsigned long integer one |
i2 | pointer to unsigned long integer two |
int cx_cmp_ulonglong | ( | void const * | i1, |
void const * | i2 | ||
) |
Compares two integers of type unsigned long long.
i1 | pointer to unsigned long long one |
i2 | pointer to unsigned long long two |