#include <stdint.h>
Go to the source code of this file.
|
| uint8_t | GEN_compare_doubles (double a, double b, double epsilon) |
| | Returns 1 if a and b are approximately equal to each other (within epsilon), 0 otherwise.
|
| uint8_t | GEN_compare_floats (float a, float b, float epsilon) |
| | Returns 1 if a and b are approximately equal to each other (within epsilon), 0 otherwise.
|
| uint64_t | GEN_abs_int64 (int64_t value) |
| | Returns the absolute value of an int64_t.
|
◆ GEN_abs_int64()
| uint64_t GEN_abs_int64 |
( |
int64_t | value | ) |
|
Returns the absolute value of an int64_t.
- Parameters
-
| value | Input signed 64-bit number |
- Returns
- Unsigned 64-bit number which is the absolute value of the input
◆ GEN_compare_doubles()
| uint8_t GEN_compare_doubles |
( |
double | a, |
|
|
double | b, |
|
|
double | epsilon ) |
Returns 1 if a and b are approximately equal to each other (within epsilon), 0 otherwise.
- Returns
- Returns 1 if a and b are approximately equal to each other (within epsilon), 0 otherwise
◆ GEN_compare_floats()
| uint8_t GEN_compare_floats |
( |
float | a, |
|
|
float | b, |
|
|
float | epsilon ) |
Returns 1 if a and b are approximately equal to each other (within epsilon), 0 otherwise.
- Returns
- Returns 1 if a and b are approximately equal to each other (within epsilon), 0 otherwise