From 580f4c7f6c2cbe320c606eb6ba73b3f4a20791ef Mon Sep 17 00:00:00 2001 From: Michalis Spyrou Date: Wed, 20 Sep 2017 11:25:45 +0100 Subject: COMPMID-417: Fix half point build for bare metal Change-Id: I1e5668f9a4e2a02fd52e79e4637575b65e74c707 Reviewed-on: http://mpd-gerrit.cambridge.arm.com/88388 Reviewed-by: Moritz Pflanzer Tested-by: Kaizen --- support/Half.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'support') diff --git a/support/Half.h b/support/Half.h index 0bc5e6268e..ae31be328c 100644 --- a/support/Half.h +++ b/support/Half.h @@ -24,10 +24,10 @@ #ifndef __ARM_COMPUTE_HALF_H__ #define __ARM_COMPUTE_HALF_H__ -#ifdef __ANDROID__ +#if(__ANDROID__ || BARE_METAL) // Android toolchain is broken and doesn't support all CPP11 math functions. #define HALF_ENABLE_CPP11_CMATH 0 -#endif /* __ANDROID__ */ +#endif /* __ANDROID__ || BARE_METAL */ // Set style to round to nearest #define HALF_ROUND_STYLE 1 -- cgit v1.2.1