diff options
author | Michalis Spyrou <michalis.spyrou@arm.com> | 2017-09-20 11:25:45 +0100 |
---|---|---|
committer | Anthony Barbier <anthony.barbier@arm.com> | 2018-11-02 16:35:24 +0000 |
commit | 580f4c7f6c2cbe320c606eb6ba73b3f4a20791ef (patch) | |
tree | 775eecb1d4c10a97370958f73cfd1377eb95c9bc /support/Half.h | |
parent | a7a5b7b2ee6adcfe86339a402f287c4d0d368659 (diff) | |
download | ComputeLibrary-580f4c7f6c2cbe320c606eb6ba73b3f4a20791ef.tar.gz |
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 <moritz.pflanzer@arm.com>
Tested-by: Kaizen <jeremy.johnson+kaizengerrit@arm.com>
Diffstat (limited to 'support/Half.h')
-rw-r--r-- | support/Half.h | 4 |
1 files changed, 2 insertions, 2 deletions
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 |