Go to the source code of this file.
Functions |
| template<class T > |
| bool | NearlyEqual (T x, T y, T tolerance) |
Macro Definition Documentation
| #define INT64FORMAT "%lld" |
| #define MAX_FLOAT32 ((float)3.40282347e+38) |
| #define MAX_INT32 0x7fffffff |
| #define MAX_UINT16 0xffff |
| #define MAX_UINT32 0xffffffff |
| #define MIN_FLOAT32 ((float)1.17549435e-38) |
| #define MIN_INT32 0x80000000 |
| #define MIN_UINT16 0x0000 |
| #define MIN_UINT32 0x00000000 |
Typedef Documentation
| typedef unsigned char BOOL8 |
| typedef long long int inT64 |
| typedef unsigned long long int uinT64 |
| typedef unsigned char uinT8 |
Function Documentation
template<class T >
| bool NearlyEqual |
( |
T |
x, |
|
|
T |
y, |
|
|
T |
tolerance |
|
) |
| |
Definition at line 148 of file host.h.
{
T diff = x - y;
return diff <= tolerance && -diff <= tolerance;
}