COMPMID-1499: Fixed issues to build for FP16 on Android

Change-Id: I7cd15e9115b5c6f544005528d69061751286be11
Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/143708
Tested-by: Jenkins <bsgcomp@arm.com>
Reviewed-by: Michele DiGiorgio <michele.digiorgio@arm.com>
diff --git a/support/ToolchainSupport.h b/support/ToolchainSupport.h
index ece9667..7d02e67 100644
--- a/support/ToolchainSupport.h
+++ b/support/ToolchainSupport.h
@@ -315,6 +315,20 @@
 
     return ptr = reinterpret_cast<void *>(aligned);
 }
+// std::numeric_limits<T>::lowest
+template <typename T>
+inline T lowest()
+{
+    return std::numeric_limits<T>::lowest();
+}
+
+#ifdef __ARM_FEATURE_FP16_VECTOR_ARITHMETIC
+template <>
+inline __fp16 lowest<__fp16>()
+{
+    return std::numeric_limits<half_float::half>::lowest();
+}
+#endif /* __ARM_FEATURE_FP16_VECTOR_ARITHMETIC */
 
 // std::isfinite
 template <typename T, typename = typename std::enable_if<std::is_arithmetic<T>::value>::type>