From 29cab36ddd73c174bf6b2de453663aa49c1cc576 Mon Sep 17 00:00:00 2001 From: Pablo Tello Date: Thu, 10 Mar 2022 17:05:34 +0000 Subject: Fixed clang-cl errors on Windows native builds. Partially resolves MLCE-739 Change-Id: Ice06a96d6a8a26b31e334ba4e697cd41d352b026 Signed-off-by: Pablo Tello Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/7364 Comments-Addressed: Arm Jenkins Reviewed-by: Gunes Bayir Benchmark: Arm Jenkins Tested-by: Arm Jenkins --- support/ToolchainSupport.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'support') diff --git a/support/ToolchainSupport.h b/support/ToolchainSupport.h index 8ea50ebe15..0557d1d775 100644 --- a/support/ToolchainSupport.h +++ b/support/ToolchainSupport.h @@ -297,7 +297,7 @@ inline bfloat16 lowest() template ::value>::type> inline bool isfinite(T value) { - return std::isfinite(value); + return std::isfinite(static_cast(value)); } inline bool isfinite(half_float::half value) @@ -310,12 +310,11 @@ inline bool isfinite(bfloat16 value) return std::isfinite(float(value)); } -#if !defined(_WIN64) // std::signbit template ::value>::type> inline bool signbit(T value) { - return std::signbit(value); + return std::signbit(static_cast(value)); } inline bool signbit(half_float::half value) @@ -327,7 +326,6 @@ inline bool signbit(bfloat16 value) { return std::signbit(float(value)); } -#endif // !defined(_WIN64) } // namespace cpp11 } // namespace support } // namespace arm_compute -- cgit v1.2.1