From 33fd07bd27be3cba183b7cacef63ea220c770c23 Mon Sep 17 00:00:00 2001 From: Ioan-Cristian Szabo Date: Thu, 26 Oct 2017 15:42:24 +0100 Subject: COMPMID-634: Enable clang with libc++ to compile for Android (32 and 64 bits) Change-Id: I693f64e70cd478e93675a8b04360128ded3b60d4 Reviewed-on: http://mpd-gerrit.cambridge.arm.com/93015 Tested-by: Kaizen Reviewed-by: Anthony Barbier --- support/ToolchainSupport.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'support') diff --git a/support/ToolchainSupport.h b/support/ToolchainSupport.h index ab2a9fe80f..ad09c6535a 100644 --- a/support/ToolchainSupport.h +++ b/support/ToolchainSupport.h @@ -34,6 +34,8 @@ #include #include +#include "support/Half.h" + namespace arm_compute { namespace support @@ -319,6 +321,18 @@ inline void *align(std::size_t alignment, std::size_t size, void *&ptr, std::siz return ptr = reinterpret_cast(aligned); } + +// std::isfinite +template ::value>::type> +inline bool isfinite(T value) +{ + return std::isfinite(value); +} + +inline bool isfinite(half_float::half value) +{ + return half_float::isfinite(value); +} } // namespace cpp11 namespace cpp14 -- cgit v1.2.1