#include "platform.h"
#include <cstdint>
Go to the source code of this file.
|
template<class T > |
bool | NearlyEqual (T x, T y, T tolerance) |
|
◆ FALSE
◆ INT32FORMAT
◆ INT64FORMAT
#define INT64FORMAT "%lld" |
◆ MAX_FLOAT32
#define MAX_FLOAT32 ((float)3.40282347e+38) |
◆ MAX_INT16
◆ MAX_INT32
#define MAX_INT32 0x7fffffff |
◆ MAX_INT8
◆ MAX_UINT16
#define MAX_UINT16 0xffff |
◆ MAX_UINT32
#define MAX_UINT32 0xffffffff |
◆ MAX_UINT8
◆ MIN_FLOAT32
#define MIN_FLOAT32 ((float)1.17549435e-38) |
◆ MIN_INT16
◆ MIN_INT32
#define MIN_INT32 static_cast<int>(0x80000000) |
◆ MIN_INT8
◆ MIN_UINT16
#define MIN_UINT16 0x0000 |
◆ MIN_UINT32
#define MIN_UINT32 0x00000000 |
◆ MIN_UINT8
◆ TRUE
◆ BOOL8
typedef unsigned char BOOL8 |
◆ FLOAT32
◆ FLOAT64
◆ inT16
◆ inT32
◆ inT64
typedef long long int inT64 |
◆ inT8
◆ uinT16
◆ uinT32
◆ uinT64
typedef unsigned long long int uinT64 |
◆ uinT8
typedef unsigned char uinT8 |
◆ NearlyEqual()
template<class T >
bool NearlyEqual |
( |
T |
x, |
|
|
T |
y, |
|
|
T |
tolerance |
|
) |
| |
Definition at line 77 of file host.h.
79 return diff <= tolerance && -diff <= tolerance;