|
KiCad PCB EDA Suite
|
#include <cmath>#include <cstdlib>#include <limits>#include <math/util.h>#include <wx/log.h>#include <wx/string.h>Go to the source code of this file.
Macros | |
| #define | wxASCII_STR(s) |
Functions | |
| void | kimathLogDebug (const char *aFormatString,...) |
| Helper to avoid directly including wx/log.h for the templated functions in kimath. | |
| void | kimathLogOverflow (double v, const char *aTypeName) |
| Workaround to avoid the empty-string conversion issue in wxWidgets. | |
| template<> | |
| int | rescale (int aNumerator, int aValue, int aDenominator) |
| template<> | |
| int64_t | rescale (int64_t aNumerator, int64_t aValue, int64_t aDenominator) |
| #define wxASCII_STR | ( | s | ) |
Definition at line 41 of file util.cpp.
Referenced by DIALOG_PLOT_BASE::DIALOG_PLOT_BASE(), PANEL_REGULATOR::OnDataFileSelection(), and PANEL_SETUP_MASK_AND_PASTE_BASE::PANEL_SETUP_MASK_AND_PASTE_BASE().
| void kimathLogDebug | ( | const char * | aFormatString, |
| ... ) |
| void kimathLogOverflow | ( | double | v, |
| const char * | aTypeName ) |
Workaround to avoid the empty-string conversion issue in wxWidgets.
Definition at line 58 of file util.cpp.
Referenced by KiCheckedCast(), and KiROUND().
| int rescale | ( | int | aNumerator, |
| int | aValue, | ||
| int | aDenominator ) |
| int64_t rescale | ( | int64_t | aNumerator, |
| int64_t | aValue, | ||
| int64_t | aDenominator ) |
Definition at line 80 of file util.cpp.
References std::abs(), kimathLogDebug(), result, and sign().