From 6d7e22fd1f62b30fdbc8166bfa405680c921ecd1 Mon Sep 17 00:00:00 2001 From: Yuanjie Huang Date: Thu, 17 Jan 2019 10:22:45 +0800 Subject: [PATCH] set _AP_ENABLE_HALF_ automatically when FPO exists --- include/ap_common.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/ap_common.h b/include/ap_common.h index ec5995e..9b22e0c 100644 --- a/include/ap_common.h +++ b/include/ap_common.h @@ -22,8 +22,10 @@ // Forward declaration of all AP types. #include -// TODO Undefine in open-source release. -// #define _AP_ENABLE_HALF_ 1 +// Automatically enable half if FPO exists +#if ! defined _AP_ENABLE_HALF_ && defined __SIM_FPO__ +#define _AP_ENABLE_HALF_ 1 +#endif #if _AP_ENABLE_HALF_ == 1 // Before ap_private definition.