From abd83cdb497d35030ae9d7e69f30faa7ffdfee59 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Mon, 5 Feb 2018 10:25:39 +0100 Subject: logic/pipeline: adjust after nan.hpp removal --- logic/pipeline.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'logic') 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& 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; } -- cgit v1.2.3