From 8bee573a78108656135cdb44a126d9a17209a08b Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Mon, 21 Feb 2011 16:17:58 +0100 Subject: workaround ICC aggressive optimization --- test/stable_norm.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'test/stable_norm.cpp') diff --git a/test/stable_norm.cpp b/test/stable_norm.cpp index 4480c5203..d78496fc3 100644 --- a/test/stable_norm.cpp +++ b/test/stable_norm.cpp @@ -29,9 +29,12 @@ template bool isNotNaN(const T& x) return x==x; } +// workaround aggressive optimization in ICC +template EIGEN_DONT_INLINE T sub(T a, T b) { return a - b; } + template bool isFinite(const T& x) { - return isNotNaN(x-x); + return isNotNaN(sub(x,x)); } template EIGEN_DONT_INLINE T copy(const T& x) -- cgit v1.2.3