From 2eb1e353338400bedaa9f077addf863f80cee168 Mon Sep 17 00:00:00 2001 From: Pablo Tello Date: Wed, 20 Oct 2021 13:42:37 +0100 Subject: Enable CPP11 math on Android * Partially resolves MLCE-622 Change-Id: I2995abae669ea436f573f1efa5c83d7ea753ce86 Signed-off-by: Pablo Tello Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/6477 Comments-Addressed: Arm Jenkins Reviewed-by: Gunes Bayir Tested-by: Arm Jenkins --- support/Half.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'support') 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 -- cgit v1.2.1