set _AP_ENABLE_HALF_ automatically when FPO exists

This commit is contained in:
Yuanjie Huang 2019-01-17 10:22:45 +08:00
parent 81cd19185c
commit 6d7e22fd1f

View file

@ -22,8 +22,10 @@
// Forward declaration of all AP types.
#include <ap_decl.h>
// 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.