Go to the source code of this file.
|
template<class T > |
bool | NearlyEqual (T x, T y, T tolerance) |
|
#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 static_cast<int>(0x80000000) |
#define MIN_UINT16 0x0000 |
#define MIN_UINT32 0x00000000 |
typedef unsigned char BOOL8 |
typedef long long int inT64 |
typedef unsigned long long int uinT64 |
typedef unsigned char uinT8 |
template<class T >
bool NearlyEqual |
( |
T |
x, |
|
|
T |
y, |
|
|
T |
tolerance |
|
) |
| |
Definition at line 148 of file host.h.
150 return diff <= tolerance && -diff <= tolerance;