GPUtopozero: change isnan reference for compatibility with gcc<6 (#229)
parent
e8da2d947a
commit
785bb40efd
|
@ -9,14 +9,13 @@
|
||||||
|
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <cmath>
|
#include <math.h>
|
||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
#include "AkimaLib.h"
|
#include "AkimaLib.h"
|
||||||
#include "Constants.h"
|
#include "Constants.h"
|
||||||
using std::max;
|
using std::max;
|
||||||
using std::min;
|
using std::min;
|
||||||
using std::vector;
|
using std::vector;
|
||||||
using std::isnan;
|
|
||||||
|
|
||||||
bool AkimaLib::aki_almostEqual(double x, double y) {
|
bool AkimaLib::aki_almostEqual(double x, double y) {
|
||||||
bool ret = (abs(x - y) <= AKI_EPS) ? true : false; // Compressed version is a little cleaner
|
bool ret = (abs(x - y) <= AKI_EPS) ? true : false; // Compressed version is a little cleaner
|
||||||
|
|
Loading…
Reference in New Issue