aboutsummaryrefslogtreecommitdiff
path: root/support
diff options
context:
space:
mode:
authorPablo Tello <pablo.tello@arm.com>2021-10-20 13:42:37 +0100
committerPablo Marquez Tello <pablo.tello@arm.com>2021-10-21 07:38:07 +0000
commit2eb1e353338400bedaa9f077addf863f80cee168 (patch)
tree55b67413e520b9b140ff48ac9f1475ae990f0289 /support
parent51847d5dd9cad6bc81673642a01fd531def44311 (diff)
downloadComputeLibrary-2eb1e353338400bedaa9f077addf863f80cee168.tar.gz
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>
Diffstat (limited to 'support')
-rw-r--r--support/Half.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/support/Half.h b/support/Half.h
index 5bea26c6e8..081da5ebc1 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