#include "SYS_API.h"#include <math.h>#include <limits.h>#include <float.h>#include <stdlib.h>#include "SYS_Types.h"Go to the source code of this file.
Defines | |
| #define | FP32_TOLERANCE ((fpreal32)0.00001) |
| #define | FP64_TOLERANCE ((fpreal64)0.00001) |
| #define | FP32_REAL_MIN ((fpreal32)2e-45) |
| #define | FP64_REAL_MIN ((fpreal64)2e-324) |
| #define | FP32_REAL_MAX ((fpreal32)FLT_MAX) |
| #define | FP64_REAL_MAX ((fpreal64)DBL_MAX) |
| #define | SYS_DBL_DIG 17 |
| #define | SYS_FLT_DIG 9 |
| #define | SYSmax(a, b) ((a) > (b) ? (a) : (b)) |
| #define | SYSmin(a, b) ((a) < (b) ? (a) : (b)) |
| #define | SYSabs(a) ((a) < 0 ? (a) : -(a)) |
Functions | |
| template<typename F > | |
| bool | SYSisNan (const F f) |
| SYS_API bool | SYSisNan (const char *number) |
| SYS_API bool | SYSisInt (const char *str) |
| SYS_API bool | SYSisFloat (const char *str) |
| SYS_API fpreal32 | SYSroundAngle (fpreal32 base, fpreal32 source) |
| SYS_API fpreal64 | SYSroundAngle (fpreal64 base, fpreal64 source) |
| SYS_API fpreal64 | SYSroundAngle (int64 base, int64 source) |
| SYS_API bool | SYSisPrime (uint num) |
| SYS_API bool | SYSisPrime (uint64 num) |
| SYS_API uint | SYSmakePrime (uint num) |
| SYS_API uint64 | SYSmakePrime (uint64 num) |
| SYS_API uint | SYSmakePow2 (uint num) |
| SYS_API uint64 | SYSmakePow2 (uint64 num) |
| #define FP32_REAL_MAX ((fpreal32)FLT_MAX) |
Definition at line 166 of file SYS_Math.h.
| #define FP32_REAL_MIN ((fpreal32)2e-45) |
Definition at line 164 of file SYS_Math.h.
| #define FP32_TOLERANCE ((fpreal32)0.00001) |
Definition at line 162 of file SYS_Math.h.
| #define FP64_REAL_MAX ((fpreal64)DBL_MAX) |
Definition at line 167 of file SYS_Math.h.
| #define FP64_REAL_MIN ((fpreal64)2e-324) |
Definition at line 165 of file SYS_Math.h.
| #define FP64_TOLERANCE ((fpreal64)0.00001) |
Definition at line 163 of file SYS_Math.h.
| #define SYS_DBL_DIG 17 |
Definition at line 173 of file SYS_Math.h.
| #define SYS_FLT_DIG 9 |
Definition at line 1164 of file SYS_Math.h.
Definition at line 1162 of file SYS_Math.h.
Definition at line 1163 of file SYS_Math.h.
| SYS_API bool SYSisFloat | ( | const char * | str | ) |
| SYS_API bool SYSisInt | ( | const char * | str | ) |
| SYS_API bool SYSisNan | ( | const char * | number | ) |
| bool SYSisNan | ( | const F | f | ) | [inline] |
Definition at line 178 of file SYS_Math.h.
| SYS_API bool SYSisPrime | ( | uint64 | num | ) |
| SYS_API bool SYSisPrime | ( | uint | num | ) |
1.5.9