diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2018-02-05 10:25:39 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2018-02-05 10:26:33 +0100 |
commit | abd83cdb497d35030ae9d7e69f30faa7ffdfee59 (patch) | |
tree | 8a9c0bf49b720314d76cad464d1771b37fdb37d8 /logic/pipeline.cpp | |
parent | 3188860effef87b1f7e180214efa1a835d49517c (diff) |
logic/pipeline: adjust after nan.hpp removal
Diffstat (limited to 'logic/pipeline.cpp')
-rw-r--r-- | logic/pipeline.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/logic/pipeline.cpp b/logic/pipeline.cpp index 52dbac88..d690b406 100644 --- a/logic/pipeline.cpp +++ b/logic/pipeline.cpp @@ -12,7 +12,6 @@ * originally written by Wim Vriend. */ -#include "compat/nan.hpp" #include "compat/sleep.hpp" #include "compat/math.hpp" #include "compat/meta.hpp" @@ -182,8 +181,11 @@ static bool is_nan(const dmat<u,w>& r) { for (int i = 0; i < u; i++) for (int j = 0; j < w; j++) - if (nanp(r(i, j))) + { + int val = std::fpclassify(r(i, j)); + if (val == FP_NAN || val == FP_INFINITE) return true; + } return false; } |