Address absense of half

This commit is contained in:
Yuanjie Huang 2019-02-21 11:11:55 +08:00
parent 5a7634891e
commit 981aec4bff
2 changed files with 8 additions and 0 deletions

View file

@ -285,7 +285,9 @@ struct af_range_ref {
ASSIGN_CTYPE_TO_AF_RANGE(unsigned long)
ASSIGN_CTYPE_TO_AF_RANGE(ap_slong)
ASSIGN_CTYPE_TO_AF_RANGE(ap_ulong)
#if _AP_ENABLE_HALF_ == 1
ASSIGN_CTYPE_TO_AF_RANGE(half)
#endif
ASSIGN_CTYPE_TO_AF_RANGE(float)
ASSIGN_CTYPE_TO_AF_RANGE(double)
#undef ASSIGN_CTYPE_TO_AF_RANGE

View file

@ -90,7 +90,9 @@ struct ap_concat_ref {
ASSIGN_WITH_CTYPE(unsigned long)
ASSIGN_WITH_CTYPE(ap_slong)
ASSIGN_WITH_CTYPE(ap_ulong)
#if _AP_ENABLE_HALF_ == 1
ASSIGN_WITH_CTYPE(half)
#endif
ASSIGN_WITH_CTYPE(float)
ASSIGN_WITH_CTYPE(double)
@ -359,7 +361,9 @@ struct ap_range_ref {
ASSIGN_WITH_CTYPE(unsigned long)
ASSIGN_WITH_CTYPE(ap_slong)
ASSIGN_WITH_CTYPE(ap_ulong)
#if _AP_ENABLE_HALF_ == 1
ASSIGN_WITH_CTYPE(half)
#endif
ASSIGN_WITH_CTYPE(float)
ASSIGN_WITH_CTYPE(double)
@ -794,7 +798,9 @@ struct ap_bit_ref {
return *this; \
}
#if _AP_ENABLE_HALF_ == 1
ASSIGN_WITH_CTYPE_FP(half)
#endif
ASSIGN_WITH_CTYPE_FP(float)
ASSIGN_WITH_CTYPE_FP(double)