From 519f658b51da871f5e9065d1d48c7ea39d8c1d85 Mon Sep 17 00:00:00 2001 From: Grzegorz Wawiorko Date: Thu, 4 Jun 2020 11:44:19 +0200 Subject: [PATCH] Test bruteforce - fix islessgreater function for intel compiler (#811) --- test_conformance/math_brute_force/reference_math.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/test_conformance/math_brute_force/reference_math.cpp b/test_conformance/math_brute_force/reference_math.cpp index 99c8eb37..a739b3a5 100644 --- a/test_conformance/math_brute_force/reference_math.cpp +++ b/test_conformance/math_brute_force/reference_math.cpp @@ -2918,7 +2918,17 @@ int reference_isgreaterequall( long double x, long double y){ return x >= y; } int reference_isinfl( long double x){ return 0 != isinf(x); } int reference_islessl( long double x, long double y){ return x < y; } int reference_islessequall( long double x, long double y){ return x <= y; } -int reference_islessgreaterl( long double x, long double y){ return 0 != islessgreater( x, y ); } +#if defined(__INTEL_COMPILER) +int reference_islessgreaterl(long double x, long double y) +{ + return 0 != islessgreaterl(x, y); +} +#else +int reference_islessgreaterl(long double x, long double y) +{ + return 0 != islessgreater(x, y); +} +#endif int reference_isnanl( long double x){ return 0 != isnan( x ); } int reference_isnormall( long double x){ return 0 != isnormal( (double) x ); } int reference_isnotequall( long double x, long double y){ return x != y; }