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) wxString::FromAscii(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) |
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(), and sign().