Add missing alias half / half2 aliases

This commit is contained in:
Alex Voicu
2018-05-26 12:10:50 +01:00
committed by GitHub
parent 544adec793
commit 0f4a135e5f
+7 -2
View File
@@ -248,5 +248,10 @@ struct __half2_raw {
{ {
return __internal_half2float(static_cast<__half2_raw>(x).y); return __internal_half2float(static_cast<__half2_raw>(x).y);
} }
} } // Anonymous namespace.
#endif // defined(__cplusplus)
#if !defined(HIP_NO_HALF)
using half = __half;
using half2 = __half2;
#endif
#endif // defined(__cplusplus)