Enable CPP11 math on Android
* Partially resolves MLCE-622
Change-Id: I2995abae669ea436f573f1efa5c83d7ea753ce86
Signed-off-by: Pablo Tello <pablo.tello@arm.com>
Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/6477
Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Reviewed-by: Gunes Bayir <gunes.bayir@arm.com>
Tested-by: Arm Jenkins <bsgcomp@arm.com>
diff --git a/support/Half.h b/support/Half.h
index 5bea26c..081da5e 100644
--- a/support/Half.h
+++ b/support/Half.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017 Arm Limited.
+ * Copyright (c) 2017, 2021 Arm Limited.
*
* SPDX-License-Identifier: MIT
*
@@ -24,10 +24,9 @@
#ifndef __ARM_COMPUTE_HALF_H__
#define __ARM_COMPUTE_HALF_H__
-#if(__ANDROID__ || BARE_METAL)
-// Android toolchain is broken and doesn't support all CPP11 math functions.
+#if(BARE_METAL)
#define HALF_ENABLE_CPP11_CMATH 0
-#endif /* __ANDROID__ || BARE_METAL */
+#endif /* BARE_METAL */
// Set style to round to nearest
#define HALF_ROUND_STYLE 1